Subject: bug#26309: [PATCH] (vc-git-register): register current file when called interactively

From: Łukasz Stelmach <[email-masked]>
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