From 68344a20a0f10fe7539a39a7334c0feaf213e9ef Mon Sep 17 00:00:00 2001 From: Daniel Farina Date: Wed, 17 Dec 2008 02:23:20 -0800 Subject: [PATCH] Add signoff customization option Signed-off-by: Daniel Farina --- magit.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/magit.el b/magit.el index f666c7ad..b8b6692d 100644 --- a/magit.el +++ b/magit.el @@ -58,6 +58,11 @@ :group 'magit :type '(integer)) +(defcustom magit-commit-signoff nil + "When performing git commit adds --signoff" + :group 'magit + :type 'boolean) + (defface magit-header '((t)) "Face for generic header lines. @@ -1944,7 +1949,9 @@ Prefix arg means justify as well." "git" "commit" "-F" "-" (append (if (not (magit-anything-staged-p)) '("--all") '()) - (if amend '("--amend") '()))))))) + (if amend '("--amend") '()) + (if magit-commit-signoff + '("--signoff") '()))))))) (erase-buffer) (bury-buffer) (when magit-pre-log-edit-window-configuration