aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-02-10 10:11:47 +0200
committerMichael S. Tsirkin <mst@redhat.com>2014-05-18 23:24:35 +0300
commitcd61e80ac85b2803b82521d8a6699d4b489ed997 (patch)
tree4ac87466724d6bd7d283edd2bfbb412583be0f1b
parentbbfecd5922e5ae9664a3e587390968ff04f7a5dc (diff)
downloadgit-cd61e80ac85b2803b82521d8a6699d4b489ed997.tar.gz
git-am: fix signoff
-rwxr-xr-xgit-am.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-am.sh b/git-am.sh
index bb4fab27e4..b26eaec28b 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -5,6 +5,10 @@
SUBDIRECTORY_OK=Yes
OPTIONS_KEEPDASHDASH=
OPTIONS_STUCKLONG=t
+if test "$(git config --bool --get am.signoff)" = true
+then
+ signoff="="
+fi
OPTIONS_SPEC="\
git am [options] [(<mbox>|<Maildir>)...]
git am [options] (--continue | --skip | --abort)
@@ -13,7 +17,7 @@ i,interactive run interactively
b,binary* (historical option -- no-op)
3,3way allow fall back on 3way merging if needed
q,quiet be quiet
-s,signoff add a Signed-off-by line to the commit message
+s,signoff$signoff add a Signed-off-by line to the commit message
u,utf8 recode into utf8 (default)
k,keep pass -k flag to git-mailinfo
keep-non-patch pass -b flag to git-mailinfo