Skip to content

Commit f2fef7b

Browse files
bebarinogitster
authored andcommitted
Documentation: Document signature showing options
The pretty formats for GPG signatures were introduced but never documented. Use the documentation from the commit that introduced them. Do the same for the --show-signature option added to git log and friends. Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 25ae7cf commit f2fef7b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Documentation/pretty-formats.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ The placeholders are:
130130
- '%b': body
131131
- '%B': raw body (unwrapped subject and body)
132132
- '%N': commit notes
133+
- '%GG': raw verification message from GPG for a signed commit
134+
- '%G?': show either "G" for Good or "B" for Bad for a signed commit
135+
- '%GS': show the name of the signer for a signed commit
133136
- '%gD': reflog selector, e.g., `refs/stash@{1}`
134137
- '%gd': shortened reflog selector, e.g., `stash@{1}`
135138
- '%gn': reflog identity name

Documentation/pretty-options.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ being displayed. Examples: "--notes=foo" will show only notes from
6666
--[no-]standard-notes::
6767
These options are deprecated. Use the above --notes/--no-notes
6868
options instead.
69+
70+
--show-signature::
71+
Check the validity of a signed commit object by passing the signature
72+
to `gpg --verify` and show the output.

0 commit comments

Comments
 (0)