* [PATCH] rebase: replace antiquated sed invocation
@ 2010-01-25 7:06 Stephen Boyd
0 siblings, 0 replies; only message in thread
From: Stephen Boyd @ 2010-01-25 7:06 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
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>
---
git-rebase.sh | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/git-rebase.sh b/git-rebase.sh
index eddc028..b5d9178 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
--
1.6.6.1.436.gaba7d
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-25 7:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 7:06 [PATCH] rebase: replace antiquated sed invocation Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).