From 4140989feacd0d13cfdee46057f38fdd8399ef18 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 2 Jul 2012 16:02:10 +0200 Subject: [PATCH] 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. --- update2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2