From: "Jason Pyeron" <jpyeron@pdinc.us>
To: <git@vger.kernel.org>
Subject: Proper plumbing for porcelain gpg formats on git show?
Date: Fri, 16 Jan 2015 11:57:17 -0500 [thread overview]
Message-ID: <EB979B4B153D49909C78239A333869FB@black> (raw)
I can't agree that
COMMITID=ef8df950c8d16dace62e55d18b26617b1268f1bc; \
git cat-file $COMMITID -p |\
sed -e '/^ /{H;$!d;}; x;/^gpgsig /!d; s/^gpgsig//;' |\
cut -c 2- |\
gpg --list-packets --textmode |\
sed '/keyid/!d; s/.*keyid \([0-9A-F]\{16\}\).*/\1/I'
is the way to go, when
COMMITID=ef8df950c8d16dace62e55d18b26617b1268f1bc; \
git log $COMMITID --pretty=format:%GK -n 1
and
COMMITID=ef8df950c8d16dace62e55d18b26617b1268f1bc; \
git show $COMMITID --pretty=format:%GK -s
do the same thing.
Is there a way to properly extract the GPG signature object, such that GPG operations may be done on it?
Are the git log formats safe to use in scripts (asking because it was said not to use at http://git.661346.n2.nabble.com/show-pretty-B-without-a-diff-td5852061.html#a5853270)?
If git log with format specifiers is safe to use, would there be interest in accepting a patch for
%Gs - the raw GPG text from the commit
%Gf - the key fingerprint
-Jason
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
next reply other threads:[~2015-01-16 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-16 16:57 Jason Pyeron [this message]
2015-01-16 19:29 ` Proper plumbing for porcelain gpg formats on git show? Jonathan Nieder
2015-01-16 19:52 ` Junio C Hamano
2015-01-16 20:05 ` Jason Pyeron
2015-01-19 14:13 ` Michael J Gruber
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=EB979B4B153D49909C78239A333869FB@black \
--to=jpyeron@pdinc.us \
--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 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.