]> mj.ucw.cz Git - git-tools.git/commitdiff
Update2: Do not reverse history
authorMartin Mares <mj@ucw.cz>
Mon, 2 Jul 2012 14:02:10 +0000 (16:02 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 2 Jul 2012 14:02:10 +0000 (16:02 +0200)
Diffs might be easier to read in chronological order, but otherwise
the history is easier to read from the newest entry and it is more
important to be consistent.

update2

diff --git a/update2 b/update2
index e1cf4ef8d5df9fc510dfa953f4fb869fa3244161..46fc4c9f16f3a6619ae38388bc67c1a32db40f57 100755 (executable)
--- a/update2
+++ b/update2
@@ -105,14 +105,14 @@ if ($old =~ /^0+$/) {
                my $pos_after_header = output_size();
 
                # Show individual commits with diffs and stats
-               system 'git', 'log', @rev_list_options, '--reverse', @diff_options, '-p', '--stat', "$old..$new";
+               system 'git', 'log', @rev_list_options, @diff_options, '-p', '--stat', "$old..$new";
 
                # If the file is too long, truncate it and print just a summary
                if (defined($max_diff_size) && output_size() > $max_diff_size) {
                        $out->truncate($pos_after_header);
                        output_size();
                        print $out "Diff was too long, printing just a summary.\n\n";
-                       system 'git', 'log', @rev_list_options, '--reverse', "$old..$new";
+                       system 'git', 'log', @rev_list_options, "$old..$new";
                }
        } elsif ($lca eq $new) {
                # Rewind