Skip to content

Commit

Permalink
Use rev-list --reverse in git-rebase.sh
Browse files Browse the repository at this point in the history
...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>
  • Loading branch information
raalkml authored and Junio C Hamano committed Apr 14, 2007
1 parent e4b0233 commit dc61b10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-rebase.sh
Expand Up @@ -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"
Expand Down

0 comments on commit dc61b10

Please sign in to comment.