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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Jason Pyeron wrote:

> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]