File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ The placeholders are:
130
130
- '%b': body
131
131
- '%B': raw body (unwrapped subject and body)
132
132
- '%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
133
136
- '%gD': reflog selector, e.g., `refs/stash@{1}`
134
137
- '%gd': shortened reflog selector, e.g., `stash@{1}`
135
138
- '%gn': reflog identity name
Original file line number Diff line number Diff line change @@ -66,3 +66,7 @@ being displayed. Examples: "--notes=foo" will show only notes from
66
66
--[no-]standard-notes::
67
67
These options are deprecated. Use the above --notes/--no-notes
68
68
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.
Original file line number Diff line number Diff line change @@ -225,6 +225,13 @@ _get_comp_words_by_ref ()
225
225
fi
226
226
fi
227
227
228
+ # Quotes the argument for shell reuse
229
+ __git_quote ()
230
+ {
231
+ local quoted=${1// \' / \'\\\'\' }
232
+ printf " '%s'" " $quoted "
233
+ }
234
+
228
235
# Generates completion reply with compgen, appending a space to possible
229
236
# completion words, if necessary.
230
237
# It accepts 1 to 4 arguments:
@@ -261,7 +268,7 @@ __gitcomp ()
261
268
__gitcomp_nl ()
262
269
{
263
270
local IFS=$' \n '
264
- COMPREPLY=($( compgen -P " ${2-} " -S " ${4- } " -W " $1 " -- " ${3-$cur } " ) )
271
+ COMPREPLY=($( compgen -P " ${2-} " -S " ${4- } " -W " $( __git_quote " $1 " ) " -- " ${3-$cur } " ) )
265
272
}
266
273
267
274
__git_heads ()
You can’t perform that action at this time.
0 commit comments