From: Jack Nagel <jacknagel@gmail.com>
To: git@vger.kernel.org
Subject: pretty placeholders for reflog entries
Date: Sun, 6 Nov 2011 23:49:48 -0600 [thread overview]
Message-ID: <CAMYxyaWPWVGUHz0qQOnARb9wexHCx73a04Bu_UhrJR=xrinX7g@mail.gmail.com> (raw)
I have the reflog enabled on a bare repo so that I can have a record of
"who pushed what, when". I'd like to define a custom pretty format for
use with "git log -g" for reading it, but unfortunately the placeholders
for reflog information are somewhat limited. In particular, I'd like to
be able to access the identity (i.e., name and email) and date from each
reflog entry.
Is it possible to extract this information in current git? Perhaps I
overlooked something.
I suppose it would be simple enough to just write a script to parse the
reflog file(s), but it would be nice to be able to do this with git
itself.
Thanks.
Jack
next reply other threads:[~2011-11-07 5:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 5:49 Jack Nagel [this message]
2011-11-07 21:13 ` pretty placeholders for reflog entries Jeff King
2011-11-07 21:41 ` Jack Nagel
2011-11-07 22:45 ` Jeff King
2011-11-07 23:41 ` Junio C Hamano
2011-11-08 5:47 ` Jeff King
2011-11-10 1:56 ` Jack Nagel
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='CAMYxyaWPWVGUHz0qQOnARb9wexHCx73a04Bu_UhrJR=xrinX7g@mail.gmail.com' \
--to=jacknagel@gmail.com \
--cc=git@vger.kernel.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.
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 NNTP newsgroup(s).