Code

git-notify: Fix the ordering of commits
authorHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 14 Apr 2010 14:22:21 +0000 (16:22 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 14 Apr 2010 14:22:21 +0000 (16:22 +0200)
If notifications for multiple commits are created, sort them
chronologically instead of in reverse chronological order.

tools/git-notify

index 17093aab354a454f29d043abbfb83670544d6499..088a58046331c7cbb2ad949d6ee4e8c4c151e27c 100755 (executable)
@@ -145,7 +145,7 @@ sub git_rev_list(@)
     die "Cannot open pipe: $!" if not defined $pid;
     if (!$pid)
     {
     die "Cannot open pipe: $!" if not defined $pid;
     if (!$pid)
     {
-        exec "git", "rev-list", @revlist_options, @args or die "Cannot execute rev-list: $!";
+        exec "git", "rev-list", "--reverse", @revlist_options, @args or die "Cannot execute rev-list: $!";
     }
     while (<REVLIST>)
     {
     }
     while (<REVLIST>)
     {