From: Gerrit Pape Date: Fri, 06 Jul 2007 14:45:43 GMT Subject: [PATCH] git-commit: add commit.signoff config option Message-ID: <20070706144543.12001.qmail@562ca05ec1cc76.315fe32.mid.smarden.org> In-Reply-To: <20070706144227.11736.qmail@046ba2bc1a0185.315fe32.mid.smarden.org> Have the commit.signoff boolean config option automatically add a Signed-off-by: by git-commit, without giving the -s switch explicitly. Signed-off-by: Gerrit Pape --- git-commit.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/git-commit.sh b/git-commit.sh index 7a7d19a..b493820 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -275,6 +275,7 @@ $1" esac done case "$edit_flag" in t) no_edit= ;; esac +test "$(git config --bool commit.signoff)" != true || signoff=t ################################################################ # Sanity check options -- 1.5.2.1