From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: A project-files implementation for Git projects Date: Sat, 14 Sep 2019 03:29:32 +0300 Message-ID: References: <8736h9rdc4.fsf@gnu.org> <87mufcfz1u.fsf@gnu.org> <87tv9kz2x6.fsf@gnu.org> <87a7bbjdwe.fsf@gnu.org> <87a7ba8uvx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24893"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 14 02:30:59 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i8vxr-0006Lc-3U for ged-emacs-devel@m.gmane.org; Sat, 14 Sep 2019 02:30:59 +0200 Original-Received: from localhost ([::1]:48252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8vxp-0000o3-Qu for ged-emacs-devel@m.gmane.org; Fri, 13 Sep 2019 20:30:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42465) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8vwX-0000B0-Qb for emacs-devel@gnu.org; Fri, 13 Sep 2019 20:29:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8vwW-0006iE-UA for emacs-devel@gnu.org; Fri, 13 Sep 2019 20:29:37 -0400 Original-Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:37177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i8vwW-0006hm-NB for emacs-devel@gnu.org; Fri, 13 Sep 2019 20:29:36 -0400 Original-Received: by mail-lj1-x230.google.com with SMTP id c22so879391ljj.4 for ; Fri, 13 Sep 2019 17:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CjvakU4YWyV8STjGVlBmsAGl6QSDUqwDkSN/CVI0x7Y=; b=RorofQcc23haV46l9TQFxuHRJcjvQ/ST2f0+ACDBbeRuSeOLKr95B+xPfe8W6FcEbI Sm6R4XDPJhYebjvAqPwcrBXIWUnaYQ5Sv5x9+ocotE4aK5ZisH5n55RYl/ftwNWXmSyE ZrhhmCDR8aeOEAKRTSBM/vaAZoYQAXL+eX7IsHpYfWZyRWWCqJ9tLboXfJmiBHKOwW/M 14D34ypIlNxtZy1qCyp6knr5EO0wbbNZjO3SmeN0O1cizvlFK0W4bpb8GqBxFDZFPhVe ougBhpWxJWzVIZ9red3Ar7bmleQLjJ/h1kKTGy3oqehNaBPtvCEduhUBWaSRt5M131v3 K4Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CjvakU4YWyV8STjGVlBmsAGl6QSDUqwDkSN/CVI0x7Y=; b=We2D6yIMFjXR9iNj3tkgGqSOxxje+OJZoZqnM3tH24dah7YH0I2TPefnFaXy4ztosT u9JXI0UfVNn3DqbloP1O/Had2rJzfqRoQkaWSaPFA1JnOuE6AD601UWtdaJAnLuxu7po 7VU/145ct7MR8U9pAPtsHvgaehF3ekovCxbswr5TcOOKh2DzHXSl0DyYd2/ZrxQZNcJO IfGxLgIz/rR1AIwhVdm3AI4i5Ow2nLzH693cnovljXuWX7brO1fOT5QxvkQPuBjYmIJ+ 15vCPXb5NxMO+skXZpwinMTitGihyKa29DPASw2t7tGdrown8InZ/Ahm9QvLcBonxJzk vZIg== X-Gm-Message-State: APjAAAUZZiJMqcZAJRN1bIzsB6tUs6h1DgUH3mb45jeplYDR8mWfzrf+ wKO/E5N1gE84x5gew8rqHt26CuUf X-Google-Smtp-Source: APXvYqzcl5KYkTxdQPTfZmYw3Nayt+uyeKmdqc8hY42Qtui+BG6jsx9vntC8hmfO2vev1ug+z3Fglw== X-Received: by 2002:a2e:9955:: with SMTP id r21mr5251584ljj.58.1568420974439; Fri, 13 Sep 2019 17:29:34 -0700 (PDT) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id l3sm7302593lfc.31.2019.09.13.17.29.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Sep 2019 17:29:33 -0700 (PDT) In-Reply-To: <87a7ba8uvx.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:240019 Archived-At: Hi Tassilo, This general approach has been on my list for a while, and I'm thankful for help. But we should get the details right, and IMO that means no "differences in semantics", and it implies certain requirements on the new VC backend action which we'll need to consider. On 11.09.2019 23:01, Tassilo Horn wrote: > here is a working solution for a VC list-files function. I've added > implementations for Git, Hg, Bzr, and SVN plus a default implementation > which probably does the right thing for all other handled VC backends. > I guess Monotone also has the ability to quickly list all tracked files > but I haven't been able to install it. I don't think there's a point in delegating to backends where the performance will end up being worse. Though I see you added a faster implementation for SVN later. > I also added a vc `project-files' implementation which uses the VC > list-files feature for backends in a new list-valued defcustom > `project-vc-project-files-backends'. That implementation should both include untracked files (since it's what we'd generally expect from it given the current Project API semantics) and honor project-vc-ignores (which is something a user can set via dir-locals, and I personally found quite useful). Ideally it also should allow future support for whitelisting entries (that override ignores returned by Git), though that's not there yet. All this makes creating new VC action more difficult, but I think we can do that. Maybe not for all backends, but Git for sure, which will help 95% of our audience.