Daniel Barkalow <barkalow@iabervon.org> writes: > On Thu, 3 Nov 2005, Junio C Hamano wrote: > >> "Peter Eriksen" <s022018@student.dtu.dk> writes: >> >> > ~/git/git-core]cat .git/remotes/origin >> > URL: git://git.kernel.org/pub/scm/git/git.git >> > Pull: master:origin >> > >> > ~/git/git-core]git-checkout maint >> > ~/git/git-core]git pull >> >> You are merging my master into your "maint", probably a copy of >> my (previous) maint. > > I think the situation is that he really wanted to update master, but > forgot that he was on the maint branch. I wonder if it would make sense to have something in .git/remotes/ file that says "run merge only when I am on frotz branch", like this: ~/git/git-core]cat .git/remotes/origin URL: git://git.kernel.org/pub/scm/git/git.git Pull: master:origin Fetch-Only-Unless: master ~/git/git-core]git-checkout maint ~/git/git-core]git pull warning: not merging because you are not on 'master' branch. This would make the above "git pull" behave identical to "git fetch", and the user can then do: $ git checkout master $ git pull . origin Useful? Useless? - 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.htmlReceived on Fri Nov 04 09:08:44 2005
This archive was generated by hypermail 2.1.8 : 2005-11-04 09:08:49 EST