diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2007-04-14 00:19:05 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-13 19:06:40 -0700 |
commit | dc61b10d987d32522803044eccaa801ffbca4bfe (patch) | |
tree | 90a58e1ba84ccdb759ba1ad32fc84cd4d7f74223 /git-rebase.sh | |
parent | e4b023332c687d824cff41855b41f604ee72e0d2 (diff) | |
download | git-dc61b10d987d32522803044eccaa801ffbca4bfe.tar.gz git-dc61b10d987d32522803044eccaa801ffbca4bfe.tar.xz |
Use rev-list --reverse in git-rebase.sh
...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>
Diffstat (limited to 'git-rebase.sh')
-rwxr-xr-x | git-rebase.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git-rebase.sh b/git-rebase.sh index 1d96f3268..2dc2c4fe9 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -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" |