From: Martin Mares Date: Mon, 2 Jul 2012 14:02:10 +0000 (+0200) Subject: Update2: Do not reverse history X-Git-Tag: v1.0~2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4140989feacd0d13cfdee46057f38fdd8399ef18;p=git-tools.git Update2: Do not reverse history 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. --- diff --git a/update2 b/update2 index e1cf4ef..46fc4c9 100755 --- 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