From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: How to get a list of changed files with VC? Date: Wed, 19 Jul 2017 02:37:44 +0200 Message-ID: <87eftdgt2f.fsf@drachen> References: <87lgntdt9f.fsf@drachen> <0571a5da-53a5-7b26-fd8e-c3981d7d154c@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500424725 7079 195.159.176.226 (19 Jul 2017 00:38:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Jul 2017 00:38:45 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Emacs Development To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 19 02:38:41 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dXd0f-0001Rc-CS for ged-emacs-devel@m.gmane.org; Wed, 19 Jul 2017 02:38:37 +0200 Original-Received: from localhost ([::1]:59231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXd0k-0004rj-VY for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2017 20:38:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXczy-0004re-3J for emacs-devel@gnu.org; Tue, 18 Jul 2017 20:37:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXczt-000506-6y for emacs-devel@gnu.org; Tue, 18 Jul 2017 20:37:54 -0400 Original-Received: from mout.web.de ([212.227.15.14]:56059) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXczs-0004yo-SU for emacs-devel@gnu.org; Tue, 18 Jul 2017 20:37:49 -0400 Original-Received: from drachen.dragon ([92.208.94.178]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MQ6KJ-1dblrG03rn-005MEF; Wed, 19 Jul 2017 02:37:45 +0200 In-Reply-To: <0571a5da-53a5-7b26-fd8e-c3981d7d154c@yandex.ru> (Dmitry Gutov's message of "Sat, 15 Jul 2017 20:41:29 +0300") X-Provags-ID: V03:K0:Cm2AysA+nwHtY8hI/S3kN1dAZehjmHh1RaSzV1ILWz8I+YwZfqI omAoqZj4Ds9GUD1UUyE1Iuw5cMvyKuG+DX6ZiKktjOAqjUOBTJpCqutsvX0/SS52XbECNkr 7v6yfKgWErOyk4PYJWMgSmCmywKOiYhC8aU7KaCENI7lVBlKAbDnqHLVEr37TCfUql2TIx3 cT11ZMGolxa+oOSQSTXIA== X-UI-Out-Filterresults: notjunk:1;V01:K0:hvskzFfW88Q=:7B64yeZAAU21zLBCL5sBY7 KtachegLj8E44ODpWjJlqJzJ7HoCt9ygjQse7yQdtjk32506s6ZsUnPPahlw0VWCIX/xsfTak dc9pbU5c0fr/Q22R6fE0pbgxZl23/5Em+JZXgWa+wNOyJclWxVnF05ftWCzVEG1zmcRPnoe7B KQsFS+IxTVFKsRlUi04XsVgPsbT4jd5zi+eHQqgw2bSBFDSBL9XEELoE7P+kXZIHjci/4/OcI JoPhpWZ0P287YZnuKgllM+GCADNr1eZdgcmuhDCiW9BwTlXwh/NeL6OXBJOHkt0SurfjI+PCZ ZQcsxSU8wjJBPv1nhAoOhB6Y/6TFKAFa/p+e6SrBPtlB4Z3eJeyxkXdsSlwJhQvRRhXElKCUW LM1x8wAUW1rxEAM8lhLLL5H4SX/21Z0u4Yopxmy95LBiE0Symr73eesLfi3QBRYTKE/DMAwi0 DEN8HFHPo8nLgkT/fskviPJnQaZZnhqbGrF8b60xKbE+HBEHWNYiAQTesAi1a3riG0ULmvJ2E Mymltjd5o/ZBGGl8e4ak/u8ioWmurmiijmrOeV/cWmZ4PpZ2qAO6EMe2vfZsIQe+J7K+U8RJm Ih+wofM0TWfnsRTCm6wzZRu1w8l0mM+hfNprkUkXMdPN6WPb3ar1PtpavtLkpvLyzdzG5wQ54 XehCBlCkYPG0z0DUfeYfwi8mpl5h1t5ncx8IHZC7/wFUMUuHp3yhrq0pu/+nB5z+fm0SjqSNg I43c/x1EuJgt/85kr6InGd+j9L1GsZFLUmOAgIouW9oIGo86iqLg4OtwRld/lUELsvLY6LB3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216867 Archived-At: Dmitry Gutov 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.