提交 c80522e3 编写于 作者: J Junio C Hamano

Make merge comment git-pull makes for an octopus a bit prettier.

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 2ba6c47b
...@@ -24,9 +24,11 @@ then ...@@ -24,9 +24,11 @@ then
die "You need to first update your working tree." die "You need to first update your working tree."
fi fi
merge_head=$(sed -e 's/ .*//' "$GIT_DIR"/FETCH_HEAD | tr '\012' ' ') merge_head=$(sed -e 's/ .*//' "$GIT_DIR"/FETCH_HEAD)
merge_name=$(sed -e 's/^[0-9a-f]* //' "$GIT_DIR"/FETCH_HEAD | merge_name=$(
tr '\012' ' ') perl -e 'print join("; ", map { chomp; s/^[0-9a-f]* //; $_ } <>)' \
"$GIT_DIR"/FETCH_HEAD
)
case "$merge_head" in case "$merge_head" in
'') '')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册