On Mon, 01 Oct 2007 15:32:58 -0700, Junio C Hamano wrote:And why is that? Why isn't pushing a branch interpreted as wanting to create a branch and pushing a tag interpreted as wanting to create a tag unless git is told differently? I mean, it's nice that the advanced user can get all specific and invoke the low-level refs/heads/ thing here. But what I'd really like to have instead is just: $ git push /pub/git/foo.git master Is there any reason that that shouldn't be interpreted as "master:master" and that that would in turn be interpreted as "create a remote refs/heads/master" ? That would really be much kinder for new users. -Carl PS. As someone who has written some new-user documentation for git, there are a few low-level git notions that I would like to avoid in that documentation. For example, one is FETCH_HEAD. In my first attempt at porting hgbook-chapter2 to git I found myself using FETCH_HEAD to simulate "hg incoming". Thankfully, I was able to rewrite it by taking advantage of remotes and using "master..origin" instead. Another example is "refs/heads". I avoided this partially by inly documenting how to push all branches with "--all", but I'd much rather be able to say that the user could git push URL branch another-branch..." or "git push URL --all" for convenience. Finally, git-push itself spews quite a bit of output with "refs/heads" in it that I don't think is useful at all. For talking with the user, git should say "branch master" not "refs/heads/master".
| Linus Torvalds | Linux 2.6.27-rc8 |
| Andi Kleen | [PATCH x86] [2/16] Add a counter for per cpu clocksource watchdog checks and repor... |
| David Miller | Slow DOWN, please!!! |
| Greg KH | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
git: | |
| Jeff King | Re: [PATCH] Color support added to git-add--interactive. |
| Yann Dirson | Re: irc usage.. |
| Peter Stahlir | Git as a filesystem |
| Junio C Hamano | Re: [PATCH 3/3] Teach "git branch" about --new-workdir |
| new_guy | Code signing in OpenBSD |
| Jason Dixon | Wasting our Freedom |
| Nick Guenther | Re: Real men don't attack straw men |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Wolfgang Walter | Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch... |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Tomasz Grobelny | [PATCH 0/5] [DCCP]: Queuing policies |
| Arjan van de Ven | Re: [GIT]: Networking |
| high memory | 8 hours ago | Linux kernel |
| semaphore access speed | 11 hours ago | Applications and Utilities |
| the kernel how to power off the machine | 12 hours ago | Linux kernel |
| Easter Eggs in windows XP | 15 hours ago | Windows |
| Shared swap partition | 15 hours ago | Linux general |
| Root password | 16 hours ago | Linux general |
| Where/when DNOTIFY is used? | 18 hours ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 20 hours ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 20 hours ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 1 day ago | Linux general |
