Skip to content

Commit be6ec17

Browse files
committed
Merge branch 'kf/gpg-sig-verification-doc'
Documentation for "git merge --verify-signatures" has been updated to clarify that the signature of only the commit at the tip is verified. Also the phrasing used for signature and key validity is adjusted to align with that used by OpenPGP. * kf/gpg-sig-verification-doc: Documentation: clarify signature verification
2 parents bfc99b6 + 05a5869 commit be6ec17

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Documentation/merge-options.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ option can be used to override --squash.
8989

9090
--verify-signatures::
9191
--no-verify-signatures::
92-
Verify that the commits being merged have good and trusted GPG signatures
93-
and abort the merge in case they do not.
92+
Verify that the tip commit of the side branch being merged is
93+
signed with a valid key, i.e. a key that has a valid uid: in the
94+
default trust model, this means the signing key has been signed by
95+
a trusted key. If the tip commit of the side branch is not signed
96+
with a valid key, the merge is aborted.
9497

9598
--summary::
9699
--no-summary::

Documentation/pretty-formats.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ ifndef::git-rev-list[]
143143
- '%N': commit notes
144144
endif::git-rev-list[]
145145
- '%GG': raw verification message from GPG for a signed commit
146-
- '%G?': show "G" for a Good signature, "B" for a Bad signature, "U" for a good,
147-
untrusted signature and "N" for no signature
146+
- '%G?': show "G" for a good (valid) signature, "B" for a bad signature,
147+
"U" for a good signature with unknown validity and "N" for no signature
148148
- '%GS': show the name of the signer for a signed commit
149149
- '%GK': show the key used to sign a signed commit
150150
- '%gD': reflog selector, e.g., `refs/stash@{1}`

0 commit comments

Comments
 (0)