Skip to content

Commit

Permalink
Make merge comment git-pull makes for an octopus a bit prettier.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Sep 14, 2005
1 parent 2ba6c47 commit c80522e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions git-pull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'')
Expand Down

0 comments on commit c80522e

Please sign in to comment.