git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Lose perl dependency.
@ 2007-01-18 10:21 Simon 'corecode' Schubert
  0 siblings, 0 replies; only message in thread
From: Simon 'corecode' Schubert @ 2007-01-18 10:21 UTC (permalink / raw)


Perl is just used to reverse stdin, which can be done with a simple
sed construct as well.

Signed-off-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
---
 git-rebase.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-rebase.sh b/git-rebase.sh
index c8bd0f9..c34a0d2 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -332,7 +332,7 @@ echo "$prev_head" > "$dotest/prev_head"
 
 msgnum=0
 for cmt in `git-rev-list --no-merges "$upstream"..ORIG_HEAD \
-			| @@PERL@@ -e 'print reverse <>'`
+			| sed -ne '1!G;$p;h'`
 do
 	msgnum=$(($msgnum + 1))
 	echo "$cmt" > "$dotest/cmt.$msgnum"
-- 
1.5.0.rc1.g8bef

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-18 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18 10:21 [PATCH] Lose perl dependency Simon 'corecode' Schubert

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).