From 0aa958d4b40159d5e72a521dda1dbe8f6e769e89 Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Sun, 24 Jan 2010 23:06:31 -0800 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- git-rebase.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/git-rebase.sh b/git-rebase.sh index eddc02875..b5d917827 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -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 -- 2.30.2