]> mj.ucw.cz Git - git-tools.git/commitdiff
Update2: Use `git log -p' instead of `--patch' for backward compatibility
authorMartin Mares <mj@ucw.cz>
Fri, 29 Jun 2012 19:51:11 +0000 (21:51 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Jun 2012 19:51:11 +0000 (21:51 +0200)
update2

diff --git a/update2 b/update2
index 933feaab0c11257bcd081f04555f6d84e11a07b1..5178f9b2aa54c893e62c83b7a4762411657864aa 100755 (executable)
--- a/update2
+++ b/update2
@@ -100,7 +100,7 @@ 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, '--patch', '--stat', "$old..$new";
+               system 'git', 'log', @rev_list_options, '--reverse', @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) {