If I understand correctly, the multi-head fetch would not write any ref if 
used like this:

        git fetch remote:repository/ head tail

but it would try a fast-forward when used like this:

        git fetch remote:repository/ head:head tail:tail

Correct? If yes: This is fantastic! It obsoletes my dumb script.

On Fri, 19 Aug 2005, Junio C Hamano wrote:

> However, suppose then I were Joe Random, an individual netdev
> contributor who is interested in these two netdev branches.
> Upon seeing the pull request, I might decide it is a good time
> to get changes from there, my upstream.
>     $ git pull jgarzik/netdev-2.6.git/ sis190:sis190 e100:e100
> Because I am keeping track of copies of these two branches, I
> use "sis190:sis190 e100:e100" to update my local heads.

I propose a "--separate" flag to git pull. This would do exactly the same 
as a plain git pull, but for each fetched branch which could not be 

        - try to switch to the branch (dying if it is not the current,
          and the working tree is dirty)

        - try a merge

        - if the merge fails, reset the branch to original state,
          write out a temporary head and output a warning

After that, it would switch back to the original branch and check that 

For all failed merges, the user needs to "git resolve" (the exact command 
line could be output by "git pull --separate").


To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to