Skip to content

Commit

Permalink
rebase: replace antiquated sed invocation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and Junio C Hamano committed Jan 25, 2010
1 parent 6fce515 commit 0aa958d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0aa958d

Please sign in to comment.