mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
rebase: replace antiquated sed invocation
Use the modern form of printing a commit subject instead of piping the output of rev-list to sed. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
6fce51571c
commit
0aa958d4b4
@ -85,10 +85,8 @@ continue_merge () {
|
||||
printf "Already applied: %0${prec}d " $msgnum
|
||||
fi
|
||||
fi
|
||||
if test -z "$GIT_QUIET"
|
||||
then
|
||||
git rev-list --pretty=oneline -1 "$cmt" | sed -e 's/^[^ ]* //'
|
||||
fi
|
||||
test -z "$GIT_QUIET" &&
|
||||
git log --format=%s -1 "$cmt"
|
||||
|
||||
prev_head=`git rev-parse HEAD^0`
|
||||
# save the resulting commit so we can read-tree on it later
|
||||
|
Loading…
Reference in New Issue
Block a user