diff options
author | Denis Cheng <crquan@gmail.com> | 2008-03-02 17:05:52 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-05 12:06:09 -0800 |
commit | 9225d7be0abab0c3b1325a733aea127b45a18625 (patch) | |
tree | fc716474a8004a05c67eabe8eba757a03b141750 /git-cvsserver.perl | |
parent | 5348337a3406a28a2db35fdfba8cb766b0241949 (diff) | |
download | git-9225d7be0abab0c3b1325a733aea127b45a18625.tar.gz |
specify explicit "--pretty=medium" with `git log/show/whatchanged`
The following patch will introduce a new configuration variable,
"format.pretty", from then on the pretty format without specifying
"--pretty" might not be the default "--pretty=medium", it depends on
the user's config. So all kinds of Shell/Perl/Emacs scripts that needs
the default medium pretty format must specify it explicitly.
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-x | git-cvsserver.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl index afe3d0b7fe..7f632af20d 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -2556,7 +2556,7 @@ sub update if ($base) { my @merged; # print "want to log between $base $parent \n"; - open(GITLOG, '-|', 'git-log', "$base..$parent") + open(GITLOG, '-|', 'git-log', '--pretty=medium', "$base..$parent") or die "Cannot call git-log: $!"; my $mergedhash; while (<GITLOG>) { |