aboutsummaryrefslogtreecommitdiff
path: root/git-rebase.sh
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2010-01-24 23:06:31 -0800
committerJunio C Hamano <gitster@pobox.com>2010-01-25 09:43:45 -0800
commit0aa958d4b40159d5e72a521dda1dbe8f6e769e89 (patch)
treecdf312d2f51456508d66423731f7cdb6f7eac604 /git-rebase.sh
parent6fce51571cb9aadb0a5e048c89044124271251f4 (diff)
downloadgit-0aa958d4b40159d5e72a521dda1dbe8f6e769e89.tar.gz
git-0aa958d4b40159d5e72a521dda1dbe8f6e769e89.tar.xz
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-xgit-rebase.sh6
1 files 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