aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc-git.el17
3 files changed, 7 insertions, 19 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5d1ffac8904..5eb39faf6ba 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -322,9 +322,6 @@ backends do not support this.
322**** The short log format for git makes use of the graph display, so 322**** The short log format for git makes use of the graph display, so
323it's not supported on git versions earlier than 1.5. 323it's not supported on git versions earlier than 1.5.
324 324
325**** The new variable vc-git-add-signoff can be used to add a
326Signed-off-by line when committing.
327
328**** Support for operating with stashes has been added to vc-dir: the stash list is 325**** Support for operating with stashes has been added to vc-dir: the stash list is
329displayed in the *vc-dir* header, stashes can be created, removed, applied and 326displayed in the *vc-dir* header, stashes can be created, removed, applied and
330their content displayed. 327their content displayed.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bb7f2b41d11..fa3761738bf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12010-01-24 Dan Nicolaescu <dann@ics.uci.edu> 12010-01-24 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 Remove support for adding --signoff on commit.
4 Future support will use an incompatible generic mechanism.
5 * vc-git.el (vc-git-add-signoff): Remove variable.
6 (vc-git-toggle-signoff): Remove function.
7 (vc-git-extra-menu-map): Do not bind vc-git-toggle-signoff.
8
3 * term/xterm.el (xterm-maybe-set-dark-background-mode): Rename 9 * term/xterm.el (xterm-maybe-set-dark-background-mode): Rename
4 from xterm-set-background-mode. Return t if the background mode 10 from xterm-set-background-mode. Return t if the background mode
5 was set. 11 was set.
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."
118 :version "23.1" 118 :version "23.1"
119 :group 'vc) 119 :group 'vc)
120 120
121(defcustom vc-git-add-signoff nil
122 "Add a Signed-off-by line when committing."
123 :type 'boolean
124 :version "23.2"
125 :group 'vc)
126
127
128(defvar git-commits-coding-system 'utf-8 121(defvar git-commits-coding-system 'utf-8
129 "Default coding system for git commits.") 122 "Default coding system for git commits.")
130 123
@@ -515,7 +508,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
515(defun vc-git-checkin (files rev comment) 508(defun vc-git-checkin (files rev comment)
516 (let ((coding-system-for-write git-commits-coding-system)) 509 (let ((coding-system-for-write git-commits-coding-system))
517 (vc-git-command nil 0 files "commit" 510 (vc-git-command nil 0 files "commit"
518 (if vc-git-add-signoff "-s") "-m" comment "--only" "--"))) 511 "-m" comment "--only" "--")))
519 512
520(defun vc-git-find-revision (file rev buffer) 513(defun vc-git-find-revision (file rev buffer)
521 (let* (process-file-side-effects 514 (let* (process-file-side-effects
@@ -766,10 +759,6 @@ or BRANCH^ (where \"^\" can be repeated)."
766 (define-key map [git-ss] 759 (define-key map [git-ss]
767 '(menu-item "Show Stash..." vc-git-stash-show 760 '(menu-item "Show Stash..." vc-git-stash-show
768 :help "Show stash contents")) 761 :help "Show stash contents"))
769 (define-key map [git-sig]
770 '(menu-item "Add Signed-off-by on commit" vc-git-toggle-signoff
771 :help "Add Add Signed-off-by when commiting (i.e. add the -s flag)"
772 :button (:toggle . vc-git-add-signoff)))
773 map)) 762 map))
774 763
775(defun vc-git-extra-menu () vc-git-extra-menu-map) 764(defun vc-git-extra-menu () vc-git-extra-menu-map)
@@ -779,10 +768,6 @@ or BRANCH^ (where \"^\" can be repeated)."
779(defun vc-git-root (file) 768(defun vc-git-root (file)
780 (vc-find-root file ".git")) 769 (vc-find-root file ".git"))
781 770
782(defun vc-git-toggle-signoff ()
783 (interactive)
784 (setq vc-git-add-signoff (not vc-git-add-signoff)))
785
786;; Derived from `lgrep'. 771;; Derived from `lgrep'.
787(defun vc-git-grep (regexp &optional files dir) 772(defun vc-git-grep (regexp &optional files dir)
788 "Run git grep, searching for REGEXP in FILES in directory DIR. 773 "Run git grep, searching for REGEXP in FILES in directory DIR.