Code

Use rev-list --reverse in git-rebase.sh
authorAlex Riesen <raa.lkml@gmail.com>
Fri, 13 Apr 2007 22:19:05 +0000 (00:19 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 14 Apr 2007 02:06:40 +0000 (19:06 -0700)
...and drop the last perl dependency in the script.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-rebase.sh

index 1d96f32685cdc51c89c63516519e8b544ab818af..2dc2c4fe9b4d4a7ff10398938efbed28fa6f43f7 100755 (executable)
@@ -339,8 +339,7 @@ prev_head=`git-rev-parse HEAD^0`
 echo "$prev_head" > "$dotest/prev_head"
 
 msgnum=0
-for cmt in `git-rev-list --no-merges "$upstream"..ORIG_HEAD \
-                       | @@PERL@@ -e 'print reverse <>'`
+for cmt in `git-rev-list --reverse --no-merges "$upstream"..ORIG_HEAD`
 do
        msgnum=$(($msgnum + 1))
        echo "$cmt" > "$dotest/cmt.$msgnum"