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>
Stephen Boyd committed
Jan 24, 2010 at 23:06 UTC
0aa958d4b40159d5e72a521dda1dbe8f6e769e89
1 file changed
+2
-4
git-rebase.sh
+2
-4
@@ -85,10 +85,8 @@ continue_merge () {
85
printf "Already applied: %0${prec}d " $msgnum
86
fi
87
fi
88
- if test -z "$GIT_QUIET"
89
- then
90
- git rev-list --pretty=oneline -1 "$cmt" | sed -e 's/^[^ ]* //'
91
- fi
88
+ test -z "$GIT_QUIET" &&
89
+ git log --format=%s -1 "$cmt"
90
91
prev_head=`git rev-parse HEAD^0`
92
# save the resulting commit so we can read-tree on it later