From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.bugs Subject: bug#5344: 23.1.91; bug/wish: vc does not honour GIT_DIR / GIT_WORK_TREE environment variables Date: Sun, 01 Dec 2019 11:53:01 +0100 Message-ID: <87r21oiagi.fsf@len.workgroup> References: <20100109014953.GC25574@shi.workgroup> <201001091929.o09JT9QF010981@godzilla.ics.uci.edu> <20100110223940.GB4845@shi.workgroup> <87imnaoica.fsf@gnus.org> <87wobpfnpq.fsf@len.workgroup> <87y2w5j6bk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="89976"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 5344@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 11:54:37 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ibMs8-000NEj-7O for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 11:54:36 +0100 Original-Received: from localhost ([::1]:49930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibMs6-0007Ti-40 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 05:54:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34714) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibMrb-0007SY-Fk for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 05:54:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibMra-0007mX-1j for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 05:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibMrZ-0007mO-R1 for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 05:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibMrZ-0002bx-OY for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 05:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Dec 2019 10:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5344 X-GNU-PR-Package: emacs Original-Received: via spool by 5344-submit@debbugs.gnu.org id=B5344.15751975959975 (code B ref 5344); Sun, 01 Dec 2019 10:54:01 +0000 Original-Received: (at 5344) by debbugs.gnu.org; 1 Dec 2019 10:53:15 +0000 Original-Received: from localhost ([127.0.0.1]:35513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibMqo-0002ap-SJ for submit@debbugs.gnu.org; Sun, 01 Dec 2019 05:53:15 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:46343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibMqm-0002ab-BT for 5344@debbugs.gnu.org; Sun, 01 Dec 2019 05:53:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1575197585; bh=nrTdiEYwSb5tZDH0MXDOMNVJCVnRSAMUyMaQ/OMSkB4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=LYC2kFbXoJPcV60q+MzqgyUndzsgUYKKAstNsfKC7pLWpKDWQeup0PmlrT7FeQLiA 4RknWptGrUp2Fdrr2/pojgO3xgCzq1FU6fOqJtaDg4qthEJLFWX536DdKT9D05aJqC dsffjuCBLCVkpbF4nGJ7/WXZql/HmMnTWR/QRjFI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from len.workgroup ([84.185.105.239]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtOGU-1hnFGx36Jq-00ut9B; Sun, 01 Dec 2019 11:53:05 +0100 In-Reply-To: <87y2w5j6bk.fsf@gnus.org> X-Provags-ID: V03:K1:WC+wF09mBaSN1QuIJ9eF40pkd1UbsMt6WdFiL0YzQBQvLz7YXAm 40dboEq+H32lOGY2Rkqsr8+MheM/Walp/rEbTsTyoJhJG9CG4YCdsd+ZDAi8aQ08IYk0gc2 dgYjMSLcNewUOQCu70BQLafn0WggK+zRCJMbe+ZUWbkS0tv8An8lKWXgPemcJKIbJopC81O nqMgncnVG5zhMVe9aK0xw== X-UI-Out-Filterresults: notjunk:1;V03:K0:/+Bj9XCmiDY=:gaXHEWa/wnTpO1iWMH12Vz 3nHOm/YLNsltuefjrQw4RzgwiLzXkcfOM7/eCk0eH2OAE4zG7QKhLYOQVSgVDSg95EOYThLIo tz5gsVk1qYMoH8Ql+O/UhN+MKM7CpChQY94Yk5Hq+sYEourf2c/bkCNFPPvR2bzmlfvyEDXU0 q7Pg9at5krECVzYjrbOjJ0slNuSUtiKTW+CP8h/kpX1ldOIlee0mTSf5WPY2RM4dgzA+tJpWV Fe9y8KtIiWg3FPY3xsec+F3Z/M75yuveGlCwleMxOrnSsyTHnNH/t9HhDur3kY7HJiGxT1HZV Tsmd1aa/4LpC4Ip4FMJEorLxsNbm43I5Zo7eHWqVDT3kPH8vmwJ1gBvKoicUVuJh0uulqiW2u emlypNyCG2wO4XCasagzMgib+2NUcOC/N3KeCwi6ZAgMOm9z1D5pfSSE/hEQNoHIJ8bDxdfCQ EwXrh4oaQh+0yJlD/BceoB5S77wHrroB6ix8wHwepMQuQl+GNxPxupk0S+V5+gQ8Cr0P0JrBi xQD1VEetI3Qfd7XlmNeTSd1Own2haD6ucSdbkjgR131uPOsaY7O89Dpnb3Lg18jclHasDYZPt vEy3SpVLR8JeC6BXxtMzwtMJMU2v5QGU2InXvEnXOCKZMpnFPQJqQobEct+PZ043SlLphHXvJ nNCq1s/wGa3jOm4djNVpOu3mXLPKZEicFrgAEbN/eloANOcaWW3STPUMLRjkTGG8Z9wuRkKXJ H4Xu/ggsuQAb7gGd3FTeKkx5pKvtgwBVFGb5gQbUoL88nq0tUktb1/tcGPkLQuUnW+MkVwy8 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172706 Archived-At: Hi Lars, sorry for the delay. * Lars Ingebrigtsen [2019-11-24; 22:46]: > Gregor Zattler writes: >> Actually git does it the other way around: It uses the values of >> the environment variables even if there is a .git directory >> further up in the file system hierarchy. So it's not a fall >> back but it overrides the default. > > The vc functions in Emacs sets GIT_DIR to "" before calling git, so in > vc mode it would be a fallback. I don't have much clue but perhaps this is the wrong thing to do? >> But working with emacsclient there is only one emacs server and >> therefore only one pair of GIT_DIR/GIR_WORK_TREE variables. >> >> To work with git from the command line with emacsclient the >> environment variables would have to be frame local. >> >> This is where I stuck. >> >> Therefore nowadays I'm back to a single ~/.git directory, not >> using the environment variables any more. And I'm working with >> magit nowadays. Magit also does not support the >> GIT_DIR/GIR_WORK_TREE environment variables. >> >> There are interesting discussions on this topic here: >> https://github.com/magit/magit/issues/2939#issuecomment-271186636 >> and here: https://github.com/magit/magit/issues/460 >> >> These are attempts to solve the pu: >> https://gitlab.com/stepnem/vcsh-el >> https://github.com/vanicat/magit-vcsh > > It seems like providing a simple alist of directories/git repos would do > the trick in vc-dir, wouldn't it? Actually I don't know. Sorry, I'm no help here. Ciao, =2D- Gregor