emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99412: Remove support for adding --s


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99412: Remove support for adding --signoff on commit.
Date: Sun, 24 Jan 2010 13:23:17 -0800
User-agent: Bazaar (2.0.2)

------------------------------------------------------------
revno: 99412
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Sun 2010-01-24 13:23:17 -0800
message:
  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.
modified:
  etc/NEWS
  lisp/ChangeLog
  lisp/vc-git.el
=== modified file 'etc/NEWS'
--- a/etc/NEWS  2010-01-14 18:29:36 +0000
+++ b/etc/NEWS  2010-01-24 21:23:17 +0000
@@ -322,9 +322,6 @@
 **** The short log format for git makes use of the graph display, so
 it's not supported on git versions earlier than 1.5.
 
-**** The new variable vc-git-add-signoff can be used to add a
-Signed-off-by line when committing.
-
 **** Support for operating with stashes has been added to vc-dir: the stash 
list is
 displayed in the *vc-dir* header, stashes can be created, removed, applied and
 their content displayed.

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-01-24 21:08:53 +0000
+++ b/lisp/ChangeLog    2010-01-24 21:23:17 +0000
@@ -1,5 +1,11 @@
 2010-01-24  Dan Nicolaescu  <address@hidden>
 
+       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.
+
        * term/xterm.el (xterm-maybe-set-dark-background-mode): Rename
        from xterm-set-background-mode.  Return t if the background mode
        was set.

=== modified file 'lisp/vc-git.el'
--- a/lisp/vc-git.el    2010-01-13 08:35:10 +0000
+++ b/lisp/vc-git.el    2010-01-24 21:23:17 +0000
@@ -118,13 +118,6 @@
   :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 @@
 (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 @@
     (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 @@
 (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]