]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter: add new "signature" atom
authorKousik Sanagavarapu <five231003@gmail.com>
Sun, 4 Jun 2023 18:22:47 +0000 (23:52 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jun 2023 00:32:15 +0000 (09:32 +0900)
commit26c9c03f0a9c26f5e41af19f3cbd6f4dda7006b3
tree1c4564bfb010553618e250d92c9fbdcba616522f
parent2f36339fa8622ee1cba957e8d0ef15719c697de3
ref-filter: add new "signature" atom

Duplicate the code for outputting the signature and its other
parameters for commits and tags in ref-filter from pretty. In the
future, this will help in getting rid of the current duplicate
implementations of such logic everywhere, when ref-filter can do
everything that pretty is doing.

The new atom "signature" and its friends are equivalent to the existing
pretty formats as follows:

%(signature) = %GG
%(signature:grade) = %G?
%(siganture:signer) = %GS
%(signature:key) = %GK
%(signature:fingerprint) = %GF
%(signature:primarykeyfingerprint) = %GP
%(signature:trustlevel) = %GT

Co-authored-by: Hariom Verma <hariom18599@gmail.com>
Co-authored-by: Jaydeep Das <jaydeepjd.8914@gmail.com>
Co-authored-by: Nsengiyumva Wilberforce <nsengiyumvawilberforce@gmail.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt
ref-filter.c
t/t6300-for-each-ref.sh