1
0
Fork 0

signchk tool now only checks merge commit (not the commits introduced) for signature

This greatly simplfies rebasing and other operations while working in a branch;
signing each and every commit that is not in master can be overkill (even if it
does give peace of mind).
perfodd
Mike Gerwitz 2013-12-22 01:12:24 -05:00
parent 996d8af015
commit 3ca4b1c40f
1 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,8 @@ chkafter="${1:-1b1790029}"
# Check every commit after chkcommit (or all commits if chkcommit was not
# provided) for a trusted signature, listing invalid commits. %G? will output
# "G" if the signature is trusted.
# "G" if the signature is trusted. In the case of a merge commit, the merge
# commit itself need only be signed.
t=$'\t'
git log --pretty="format:%H %aN$t%s$t%G?" "$chkafter.." \
git log --first-parent --pretty="format:%H %aN$t%s$t%G?" "$chkafter.." \
| grep -v "${t}G$"