all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get the list of modified files in VC?
Date: Wed, 26 Jul 2017 20:51:50 +0200	[thread overview]
Message-ID: <8760ef3ubd.fsf@jane> (raw)
In-Reply-To: <838tjc7fth.fsf@gnu.org>


On 2017-07-25, at 16:26, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Marcin Borkowski <mbork@mbork.pl>
>> Date: Tue, 25 Jul 2017 07:32:50 +0200
>>
>> I'm writing some code on top of VC.  I'd need to get the list of
>> modified files in the current repository.  How do I do that (other than
>> firing git as an external process)?
>
> I suggest to look at what vc-dir-refresh does, I'm sure some variant
> of that is what you want.  The back-end call 'dir-status-files' is the
> backbone of this.

Thanks, but I still have questions.  I learned about
vc-BACKEND-dir-status-files functions, but I don't really understand how
to use one.  And they are not extremely well documented...

This is not a huge problem - I can always just run git directly - but
I wanted to do it "the right way";-).

Best,

--
Marcin Borkowski



  reply	other threads:[~2017-07-26 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25  5:32 How to get the list of modified files in VC? Marcin Borkowski
2017-07-25 14:26 ` Eli Zaretskii
2017-07-26 18:51   ` Marcin Borkowski [this message]
     [not found] ` <CAKX+4G9FDhQOBuMJCnVoFGeVyX6eWOi_u1HuaPvaQLDzVUwEzw@mail.gmail.com>
2017-07-25 17:19   ` Marcin Borkowski

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

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

  git send-email \
    --in-reply-to=8760ef3ubd.fsf@jane \
    --to=mbork@mbork.pl \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.