diff options
author | Denis Cheng <crquan@gmail.com> | 2008-03-02 12:05:52 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-05 23:06:09 +0300 |
commit | 9225d7be0abab0c3b1325a733aea127b45a18625 (patch) | |
tree | fc716474a8004a05c67eabe8eba757a03b141750 /contrib/hooks | |
parent | 5348337a3406a28a2db35fdfba8cb766b0241949 (diff) |
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 'contrib/hooks')
-rw-r--r-- | contrib/hooks/post-receive-email | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index 77c88ebf1f..62a740c482 100644 --- a/contrib/hooks/post-receive-email +++ b/contrib/hooks/post-receive-email @@ -567,7 +567,7 @@ generate_general_email() echo "" if [ "$newrev_type" = "commit" ]; then echo $LOGBEGIN - git show --no-color --root -s $newrev + git show --no-color --root -s --pretty=medium $newrev echo $LOGEND else # What can we do here? The tag marks an object that is not |