On 2009.04.06 08:42:16 +0100, Reece Dunn wrote:This should not say "may", either you are or you are not on a detached HEAD, and git can tell that, so it should not let the user have to guess. Checking out a named branch won't solve the "problem" on its own. Consider this: git checkout origin/foo *do stuff* git pull *Oh! I need a named branch* git checkout -b foo git pull *Still fails* Maybe: You asked me to pull without telling me which branch you want to merge with and as you have no branch checked out, I cannot look for any defaults to use. Please name which branch you want to merge on the command line and try again (e.g. 'git pull <repository> <refspec>'). See git-pull(1) for details on the refspec. That just adjusts the "you can set some defaults" part, replacing it with a message telling that a detached HEAD cannot have any defaults. Without implying anything about how the user might want to work, but giving a hint that a branch can have defaults for "git pull". Björn -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Linux 2.6.21-rc4 |
| Jens Axboe | [PATCH 0/8] IO queuing and complete affinity |
| Nicholas A. Bellinger | Re: Integration of SCST in the mainstream Linux kernel |
| Robin Lee Powell | NFS hang + umount -f: better behaviour requested. |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ingo Molnar | Re: [crash] BUG: unable to handle kernel NULL pointer dereference at 0000000000000... |
| Gerrit Renker | [PATCH 19/37] dccp: Header option insertion routine for feature-negotiation |
| Gary Thomas | Marvell 88E609x switch? |
| Jamie Lokier | Re: silent semantic changes with reiser4 |
| Jan Kara | [PATCH 10/16] ext4: Remove syncing logic from ext4_file_write |
| Jack Stone | Re: Versioning file system |
| Jens Axboe | [PATCH 8/8] vm: Add an tuning knob for vm.max_writeback_pages |
