unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [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

* Re: [PATCH] Use %H instead of %N as our --pretty=format
  2014-08-20 19:23 [PATCH] Use %H instead of %N as our --pretty=format Eric Hanchrow
@ 2014-08-20 19:38 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2014-08-20 19:38 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: emacs-devel

Eric Hanchrow wrote:

> %N displays "git notes", which we don't use;

"We" do use it. The current git mirror contains the bzr revision as a note.
But most people don't bother to fetch the notes, I guess.
(This is written in etc/NEWS.)




^ permalink raw reply	[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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).