From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: How to get the list of modified files in VC? Date: Wed, 26 Jul 2017 20:51:50 +0200 Message-ID: <8760ef3ubd.fsf@jane> References: <87k22xw071.fsf@jane> <838tjc7fth.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501095198 9284 195.159.176.226 (26 Jul 2017 18:53:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2017 18:53:18 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 26 20:53:14 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daRQl-00026m-O9 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jul 2017 20:53:11 +0200 Original-Received: from localhost ([::1]:39615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daRQr-0004Yn-EB for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jul 2017 14:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daRPo-0004Wp-E1 for help-gnu-emacs@gnu.org; Wed, 26 Jul 2017 14:52:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daRPn-000627-JY for help-gnu-emacs@gnu.org; Wed, 26 Jul 2017 14:52:12 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:33232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daRPi-0005xk-0s; Wed, 26 Jul 2017 14:52:06 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id EA9A0E67E6; Wed, 26 Jul 2017 20:52:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BFl7NLLLCU7Y; Wed, 26 Jul 2017 20:51:57 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 17645E677E; Wed, 26 Jul 2017 20:51:57 +0200 (CEST) In-reply-to: <838tjc7fth.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113879 Archived-At: On 2017-07-25, at 16:26, Eli Zaretskii wrote: >> From: Marcin Borkowski >> 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