diff options
author | Stephen Boyd <bebarino@gmail.com> | 2010-01-24 23:06:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-25 09:43:45 -0800 |
commit | 0aa958d4b40159d5e72a521dda1dbe8f6e769e89 (patch) | |
tree | cdf312d2f51456508d66423731f7cdb6f7eac604 /git-rebase.sh | |
parent | 6fce51571cb9aadb0a5e048c89044124271251f4 (diff) | |
download | git-0aa958d4b40159d5e72a521dda1dbe8f6e769e89.tar.gz |
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>
Diffstat (limited to 'git-rebase.sh')
-rwxr-xr-x | git-rebase.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/git-rebase.sh b/git-rebase.sh index eddc02875f..b5d9178275 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 |