unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <stlman@poczta.fm>
To: 26309@debbugs.gnu.org
Cc: "Łukasz Stelmach" <stlman@poczta.fm>
Subject: bug#26309: [PATCH] (vc-git-register): register current file when called interactively
Date: Thu, 30 Mar 2017 20:43:44 +0200	[thread overview]
Message-ID: <1490899424-3131-1-git-send-email-stlman@poczta.fm> (raw)
In-Reply-To: <8737du6hkn.fsf%l.stelmach@samsung.com>

---
 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






      parent reply	other threads:[~2017-03-30 18:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170330130513eucas1p2ca60345aff5282dd8916971bee36bf1d@eucas1p2.samsung.com>
2017-03-30 13:05 ` bug#26309: 24.4; vc-git-register doesn't run interactively Łukasz Stelmach
2017-03-30 13:51   ` Noam Postavsky
     [not found]     ` <CGME20170330140455eucas1p1cd577c5a6a38095e7085f70c869ca064@eucas1p1.samsung.com>
2017-03-30 14:04       ` Łukasz Stelmach
2017-03-30 14:20         ` Andreas Schwab
     [not found]           ` <CGME20170330143109eucas1p2bbb6175dcc95b0d29ee1f4275466110c@eucas1p2.samsung.com>
2017-03-30 14:30             ` Łukasz Stelmach
2017-03-30 14:50               ` Noam Postavsky
     [not found]                 ` <CGME20170330150948eucas1p191eac45190f0a0afec1a8ffbbc36b9e7@eucas1p1.samsung.com>
2017-03-30 15:09                   ` Łukasz Stelmach
2017-03-30 16:31                     ` Dmitry Gutov
2017-03-31 12:12                       ` Thien-Thi Nguyen
2019-09-29 14:50                       ` Lars Ingebrigtsen
2017-03-30 18:43   ` Łukasz Stelmach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1490899424-3131-1-git-send-email-stlman@poczta.fm \
    --to=stlman@poczta.fm \
    --cc=26309@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).