Re: [PATCH 2/2] Display 'theirs' branch name when possible in merge.
Show 16 quoted lines
> Displaying the SHA1 of 'their' branch (the branch being merged into
> the current branch) is not nearly as friendly as just displaying
> the name of that branch, especially if that branch is already local
> to this repository.
>
> git-merge now sets the environment variable 'GITHEAD_%(sha1)=%(name)'
> for each argument it gets passed, making the actual input name that
> resolved to the commit '%(sha1)' easily available to the invoked
> merge strategy.
>
> git-merge-recursive makes use of these environment variables when
> they are available by using '%(name)' whenever it outputs the commit
> identification rather than '%(sha1)'. This is most obvious in the
> conflict hunks created by xdl_merge:
>
> $ git mege sideb~1
Show 5 quoted lines
> <<<<<<< HEAD:INSTALL
> Good!
> =======
> Oops.
> >>>>>>> sideb~1:INSTALL
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git