mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
Make merge comment git-pull makes for an octopus a bit prettier.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
2ba6c47be1
commit
c80522e30f
|
@ -24,9 +24,11 @@ then
|
|||
die "You need to first update your working tree."
|
||||
fi
|
||||
|
||||
merge_head=$(sed -e 's/ .*//' "$GIT_DIR"/FETCH_HEAD | tr '\012' ' ')
|
||||
merge_name=$(sed -e 's/^[0-9a-f]* //' "$GIT_DIR"/FETCH_HEAD |
|
||||
tr '\012' ' ')
|
||||
merge_head=$(sed -e 's/ .*//' "$GIT_DIR"/FETCH_HEAD)
|
||||
merge_name=$(
|
||||
perl -e 'print join("; ", map { chomp; s/^[0-9a-f]* //; $_ } <>)' \
|
||||
"$GIT_DIR"/FETCH_HEAD
|
||||
)
|
||||
|
||||
case "$merge_head" in
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue