Sign and sign-off commits by default
authorAmin Bandali <amin@aminb.org>
Sun, 11 Dec 2016 05:12:48 +0000 (00:12 -0500)
committerAmin Bandali <amin@aminb.org>
Sun, 11 Dec 2016 05:12:48 +0000 (00:12 -0500)
Signed-off-by: Amin Bandali <amin@aminb.org>
git/.gitconfig
spacemacs/.spacemacs

index 153186f..fc7b5ee 100644 (file)
@@ -1,3 +1,8 @@
 [user]
        email = amin@aminb.org
        name = Amin Bandali
+       signingkey = 4E05246AB0BF7FFB
+[commit]
+       gpgsign = true
+[format]
+       signoff = true
index 992faaf..eeb178a 100644 (file)
@@ -318,7 +318,8 @@ you should place your code here."
 
   (setq powerline-default-separator 'slant)
 
-  (setq magit-commit-arguments '("--gpg-sign=4E05246AB0BF7FFB"))
+  (setq magit-commit-arguments '("--signoff"
+                                 "--gpg-sign=4E05246AB0BF7FFB"))
 
   (setq undo-tree-auto-save-history t
         undo-tree-history-directory-alist