Whether patches require signing off or not is probably a per-project setting rather than a per-commit setting. Therefore as a convenience to the user, the commit.signoff setting will automtically add --signoff to commits. Signed-off-by: Andy Parkins <andyparkins@xxxxxxxxx> --- git-commit.sh | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/git-commit.sh b/git-commit.sh index 81c3a0c..c45af10 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -66,9 +66,7 @@ trap ' rm -f "$NEXT_INDEX" ' 0 -################################################################ -# Command line argument parsing and sanity checking - +# Init all= also= only= @@ -85,6 +83,17 @@ signoff= force_author= only_include_assumed= untracked_files= + +# Config +case "$(git-repo-config --get commit.signoff)" in +1|on|yes|true) + signoff=t + ;; +esac + +################################################################ +# Command line argument parsing and sanity checking + while case "$#" in 0) break;; esac do case "$1" in -- 1.4.3.GIT-dirty - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html