• J
    merge: indicate remote tracking branches in merge message · 69a8b7c7
    Jeff King 提交于
    Previously when merging directly from a local tracking
    branch like:
    
      git merge origin/master
    
    The merge message said:
    
       Merge commit 'origin/master'
    
         * commit 'origin/master':
           ...
    
    Instead, let's be more explicit about what we are merging:
    
       Merge remote branch 'origin/master'
    
         * origin/master:
           ...
    
    We accomplish this by recognizing remote tracking branches
    in git-merge when we build the simulated FETCH_HEAD output
    that we feed to fmt-merge-msg.
    
    In addition to a new test in t7608, we have to tweak the
    expected output of t3409, which does such a merge.
    Signed-off-by: NJeff King <peff@peff.net>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    69a8b7c7
builtin-merge.c 31.6 KB