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
parent
996d8af015
commit
3ca4b1c40f
|
@ -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$"
|
||||
|
|
Loading…
Reference in New Issue