git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Lose perl dependency.

From
Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Date
Jan 18, 2007, 10:21 UTC
Message-ID
<20070118102800.30B38A90C@diphong.localdomain>

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
Message 1 of 1 in “Lose perl dependency.”
  1. Lose perl dependency.Simon 'corecode' Schubert, Jan 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.