summaryrefslogtreecommitdiff
path: root/lisp/vc-git.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-01-24 13:23:17 -0800
committerDan Nicolaescu <dann@ics.uci.edu>2010-01-24 13:23:17 -0800
commitc2f1d6d81e9a513db096bb6986f284f736d55cbe (patch)
tree703e031ddd0a8413abf470f86e1810e88fb0d7f7 /lisp/vc-git.el
parent51850286011bc5a11e3ea20e36985a43e03f2e44 (diff)
downloademacs-c2f1d6d81e9a513db096bb6986f284f736d55cbe.tar.gz
Remove support for adding --signoff on commit.
Future support will use an incompatible generic mechanism. * vc-git.el (vc-git-add-signoff): Remove variable. (vc-git-toggle-signoff): Remove function. (vc-git-extra-menu-map): Do not bind vc-git-toggle-signoff.
Diffstat (limited to 'lisp/vc-git.el')
-rw-r--r--lisp/vc-git.el17
1 files changed, 1 insertions, 16 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index 52482d9ff4b..4896f79a395 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -118,13 +118,6 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
:version "23.1"
:group 'vc)
-(defcustom vc-git-add-signoff nil
- "Add a Signed-off-by line when committing."
- :type 'boolean
- :version "23.2"
- :group 'vc)
-
-
(defvar git-commits-coding-system 'utf-8
"Default coding system for git commits.")
@@ -515,7 +508,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
(defun vc-git-checkin (files rev comment)
(let ((coding-system-for-write git-commits-coding-system))
(vc-git-command nil 0 files "commit"
- (if vc-git-add-signoff "-s") "-m" comment "--only" "--")))
+ "-m" comment "--only" "--")))
(defun vc-git-find-revision (file rev buffer)
(let* (process-file-side-effects
@@ -766,10 +759,6 @@ or BRANCH^ (where \"^\" can be repeated)."
(define-key map [git-ss]
'(menu-item "Show Stash..." vc-git-stash-show
:help "Show stash contents"))
- (define-key map [git-sig]
- '(menu-item "Add Signed-off-by on commit" vc-git-toggle-signoff
- :help "Add Add Signed-off-by when commiting (i.e. add the -s flag)"
- :button (:toggle . vc-git-add-signoff)))
map))
(defun vc-git-extra-menu () vc-git-extra-menu-map)
@@ -779,10 +768,6 @@ or BRANCH^ (where \"^\" can be repeated)."
(defun vc-git-root (file)
(vc-find-root file ".git"))
-(defun vc-git-toggle-signoff ()
- (interactive)
- (setq vc-git-add-signoff (not vc-git-add-signoff)))
-
;; Derived from `lgrep'.
(defun vc-git-grep (regexp &optional files dir)
"Run git grep, searching for REGEXP in FILES in directory DIR.