git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Proper plumbing for porcelain gpg formats on git show?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 16, 2015, 19:29 UTC
Message-ID
<20150116192947.GD29365@google.com>
In-Reply-To
<EB979B4B153D49909C78239A333869FB@black>
Hi,
Jason Pyeron wrote:
Show 11 quoted lines
> 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)?
Better to use
	git diff-tree -s --always --format=%GK $COMMITID
[...]
> would there be interest in accepting a patch for 
>
> %Gs - the raw GPG text from the commit
> %Gf - the key fingerprint

There may be bikeshedding on the exact format specifier, but aside from that I don't see why not. ;-)

Thanks, Jonathan

Previous: Jason PyeronNext: Junio C Hamano
Message 2 of 5 in “Proper plumbing for porcelain gpg formats on git show?”
  1. Jason PyeronJan 16, 2015
  2. Jonathan NiederJan 16, 2015
  3. Junio C HamanoJan 16, 2015
  4. Jason PyeronJan 16, 2015
  5. Michael J GruberJan 19, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.