Skip to content

Commit 0aa958d

Browse files
bebarinogitster
authored andcommitted
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>
1 parent 6fce515 commit 0aa958d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

git-rebase.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ continue_merge () {
8585
printf "Already applied: %0${prec}d " $msgnum
8686
fi
8787
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"
9290

9391
prev_head=`git rev-parse HEAD^0`
9492
# save the resulting commit so we can read-tree on it later

0 commit comments

Comments
 (0)