File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ SYNOPSIS
14
14
[--ignore-date] [--ignore-space-change | --ignore-whitespace]
15
15
[--whitespace=<option>] [-C<n>] [-p<n>] [--directory=<dir>]
16
16
[--exclude=<path>] [--include=<path>] [--reject] [-q | --quiet]
17
- [--[no-]scissors]
17
+ [--[no-]scissors] [-S[<keyid>]]
18
18
[(<mbox> | <Maildir>)...]
19
19
'git am' (--continue | --skip | --abort)
20
20
@@ -119,6 +119,10 @@ default. You can use `--no-utf8` to override this.
119
119
Skip the current patch. This is only meaningful when
120
120
restarting an aborted patch.
121
121
122
+ -S[<keyid>]::
123
+ --gpg-sign[=<keyid>]::
124
+ GPG-sign commits.
125
+
122
126
--continue::
123
127
-r::
124
128
--resolved::
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ abort restore the original branch and abort the patching operation.
38
38
committer-date-is-author-date lie about committer date
39
39
ignore-date use current timestamp for author date
40
40
rerere-autoupdate update the index with reused conflict resolution if possible
41
+ S,gpg-sign? GPG-sign commits
41
42
rebasing* (internal use for git-rebase)"
42
43
43
44
. git-sh-setup
@@ -375,6 +376,7 @@ git_apply_opt=
375
376
committer_date_is_author_date=
376
377
ignore_date=
377
378
allow_rerere_autoupdate=
379
+ gpg_sign_opt=
378
380
379
381
if test " $( git config --bool --get am.keepcr) " = true
380
382
then
@@ -436,6 +438,10 @@ it will be removed. Please do not use it anymore."
436
438
keepcr=t ;;
437
439
--no-keep-cr)
438
440
keepcr=f ;;
441
+ --gpg-sign)
442
+ gpg_sign_opt=-S ;;
443
+ --gpg-sign=* )
444
+ gpg_sign_opt=" -S${1# --gpg-sign=} " ;;
439
445
--)
440
446
shift ; break ;;
441
447
* )
@@ -900,7 +906,8 @@ did you forget to use 'git add'?"
900
906
GIT_COMMITTER_DATE=" $GIT_AUTHOR_DATE "
901
907
export GIT_COMMITTER_DATE
902
908
fi &&
903
- git commit-tree $tree ${parent: +-p} $parent < " $dotest /final-commit"
909
+ git commit-tree ${parent: +-p} $parent ${gpg_sign_opt: +" $gpg_sign_opt " } $tree \
910
+ < " $dotest /final-commit"
904
911
) &&
905
912
git update-ref -m " $GIT_REFLOG_ACTION : $FIRSTLINE " HEAD $commit $parent ||
906
913
stop_here $this
You can’t perform that action at this time.
0 commit comments