From: Eric Hanchrow <eric.hanchrow@gmail.com>
To: emacs-devel@gnu.org
Subject: [PATCH] Use %H instead of %N as our --pretty=format
Date: Wed, 20 Aug 2014 12:23:01 -0700 [thread overview]
Message-ID: <CAHZoxq-Wi12h=U2riOBYNcMLmuYMPSOsjx_2b886dLK9hEso3w@mail.gmail.com> (raw)
%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
next reply other threads:[~2014-08-20 19:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 19:23 Eric Hanchrow [this message]
2014-08-20 19:38 ` [PATCH] Use %H instead of %N as our --pretty=format Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHZoxq-Wi12h=U2riOBYNcMLmuYMPSOsjx_2b886dLK9hEso3w@mail.gmail.com' \
--to=eric.hanchrow@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.