emacs-devel
[Top][All Lists]
Advanced

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

Re: How to get a list of changed files with VC?


From: Michael Heerdegen
Subject: Re: How to get a list of changed files with VC?
Date: Wed, 19 Jul 2017 02:37:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Dmitry Gutov <address@hidden> writes:

> For the changed files relative to HEAD, you can call the backend
> command (with vc-call-backend) named dir-status-files. But there is no
> way to specify the reference revision. Maybe calling the VC backend
> diff command on the whole repo and parsing the output could work.

That's what I expected.  Then I think I wait until Emacs provides
something appropriate, and just change the name of my pattern to
"git-change" or something like that.

> > 2.  The second function `el-search--file-changed-p' doesn't have this
> > problem.  However, I gained it from trial and error.  Does the
> > implementation make sense?  How can I avoid binding
> > vc-git-diff-switches
> > -> nil (I get an error for some files if I don't).
> I'll need some more details to answer this.

Ok, I'll try to investigate.


Thanks,

Michael.



reply via email to

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