GNU bug report logs - #26309
24.4; vc-git-register doesn't run interactively

Previous Next

Package: emacs;

Reported by: Łukasz Stelmach <l.stelmach <at> samsung.com>

Date: Thu, 30 Mar 2017 13:06:01 UTC

Severity: wishlist

Found in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 26309 <at> debbugs.gnu.org (full text, mbox):

From: Łukasz Stelmach <stlman <at> poczta.fm>
To: 26309 <at> debbugs.gnu.org
Cc: Łukasz Stelmach <stlman <at> poczta.fm>
Subject: [PATCH] (vc-git-register): register current file when called
 interactively
Date: Thu, 30 Mar 2017 20:43:44 +0200
---
 lisp/vc/vc-git.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 1a3f1bf..6399dc8 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -669,6 +669,8 @@ The car of the list is the current branch."
 
 (defun vc-git-register (files &optional _comment)
   "Register FILES into the git version-control system."
+  (interactive
+   (list (list (buffer-file-name))))
   (let (flist dlist)
     (dolist (crt files)
       (if (file-directory-p crt)
-- 
2.1.4





This bug report was last modified 5 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.