summaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-03-02 09:05:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-05 20:06:09 (GMT)
commit9225d7be0abab0c3b1325a733aea127b45a18625 (patch)
treefc716474a8004a05c67eabe8eba757a03b141750 /contrib/emacs
parent5348337a3406a28a2db35fdfba8cb766b0241949 (diff)
downloadgit-9225d7be0abab0c3b1325a733aea127b45a18625.zip
git-9225d7be0abab0c3b1325a733aea127b45a18625.tar.gz
git-9225d7be0abab0c3b1325a733aea127b45a18625.tar.bz2
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/emacs')
-rw-r--r--contrib/emacs/git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index c926823..4fa853f 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -1299,7 +1299,7 @@ Return the list of files that haven't been handled."
(let (author-name author-email subject date msg)
(with-temp-buffer
(let ((coding-system (git-get-logoutput-coding-system)))
- (git-call-process-env t nil "log" "-1" commit)
+ (git-call-process-env t nil "log" "-1" "--pretty=medium" commit)
(goto-char (point-min))
(when (re-search-forward "^Author: *\\(.*\\) <\\(.*\\)>$" nil t)
(setq author-name (match-string 1))