From: Eduardo Habkost Date: Wed, 28 Dec 2016 22:55:44 GMT Subject: [PATCH v3] am: add am.signoff add config variable Message-ID: <20161228225544.16388-1-ehabkost@redhat.com> git-am has options to enable --message-id and --3way by default, but no option to enable --signoff by default. Add a "am.signoff" config option. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Added documentation to Documentation/git-am.txt and Documentation/config.txt * Added test cases to t4150-am.sh Changes v2 -> v3: * Fix doc to mention "--[no-]signoff" instead of "--[no]-signoff" * Reported-by: Andreas Schwab * Add missing test_cmp line on test code * Use "! grep" instead of "$(grep -c ...)" -eq 0 * Suggested-by: Stefan Beller --- Documentation/config.txt | 5 +++++ Documentation/git-am.txt | 6 ++++-- builtin/am.c | 2 ++ t/t4150-am.sh | 26 ++++++++++++++++++++++++++ 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/Documentation/config.txt b/Documentation/config.txt index 30cb94610..6b2990203 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -822,6 +822,11 @@ am.keepcr:: by giving `--no-keep-cr` from the command line. See linkgit:git-am[1], linkgit:git-mailsplit[1]. +am.signoff:: + If true, git-am will add a `Signed-off-by:` line to the commit + message. See the signoff option in linkgit:git-commit[1] for + more information. + am.threeWay:: By default, `git am` will fail if the patch does not apply cleanly. When set to true, this setting tells `git am` to fall back on 3-way merge if diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index 12879e402..1f14986c7 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -9,7 +9,7 @@ git-am - Apply a series of patches from a mailbox SYNOPSIS -------- [verse] -'git am' [--signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8] +'git am' [--[no-]signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8] [--[no-]3way] [--interactive] [--committer-date-is-author-date] [--ignore-date] [--ignore-space-change | --ignore-whitespace] [--whitespace=