* [PATCH] Use %H instead of %N as our --pretty=format
@ 2014-08-20 19:23 Eric Hanchrow
2014-08-20 19:38 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Eric Hanchrow @ 2014-08-20 19:23 UTC (permalink / raw)
To: emacs-devel
%N displays "git notes", which we don't use; %H displays the commit
hash, which is much more useful. I assume that the %N was a typo on
esr's part.
lisp/ChangeLog | 5 +++++
lisp/version.el | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dfc4ab7..893717b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-20 Eric Hanchrow <eric.hanchrow@gmail.com>
+
+ * version.el (emacs-repository-get-version): Use %H instead of %N
+ as our "pretty" format spec.
+
2014-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/python.el (python-shell-prompt-detect): Remove redundant
diff --git a/lisp/version.el b/lisp/version.el
index 68b502c..1ea38da 100644
--- a/lisp/version.el
+++ b/lisp/version.el
@@ -188,7 +188,7 @@ only ask the VCS if we cannot find any information
ourselves."
(and (eq 0
(condition-case nil
(call-process "git" nil '(t nil) nil "log"
- "-1" "--pretty=format:%N")
+ "-1" "--pretty=format:%H")
(error nil)))
(not (zerop (buffer-size)))
(replace-regexp-in-string "\n" "" (buffer-string))))))))
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-20 19:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20 19:23 [PATCH] Use %H instead of %N as our --pretty=format Eric Hanchrow
2014-08-20 19:38 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.