From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#5344: 23.1.91; bug/wish: vc does not honour GIT_DIR / GIT_WORK_TREE environment variables Date: Sat, 9 Jan 2010 11:29:09 -0800 (PST) Message-ID: <201001091929.o09JT9QF010981@godzilla.ics.uci.edu> References: <20100109014953.GC25574@shi.workgroup> Reply-To: Dan Nicolaescu , 5344@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263066569 31825 80.91.229.12 (9 Jan 2010 19:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2010 19:49:29 +0000 (UTC) Cc: 5344@debbugs.gnu.org To: Gregor Zattler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 09 20:49:22 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NThJI-0007Kz-Py for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jan 2010 20:49:21 +0100 Original-Received: from localhost ([127.0.0.1]:58339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NThJJ-0001MI-Di for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jan 2010 14:49:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NThJ3-0001GL-RE for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 14:49:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NThIz-0001CN-70 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 14:49:05 -0500 Original-Received: from [199.232.76.173] (port=40226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NThIy-0001CB-Vl for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 14:49:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52342) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NThIy-0003bs-KJ for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 14:49:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NTh0d-0003hv-3V; Sat, 09 Jan 2010 14:30:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Dan Nicolaescu , 5344@debbugs.gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2010 19:30:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5344 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5344-submit@debbugs.gnu.org id=B5344.126306536214215 (code B ref 5344); Sat, 09 Jan 2010 19:30:02 +0000 Original-Received: (at 5344) by debbugs.gnu.org; 9 Jan 2010 19:29:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgzy-0003hE-7h for submit@debbugs.gnu.org; Sat, 09 Jan 2010 14:29:22 -0500 Original-Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgzw-0003h9-0N for 5344@debbugs.gnu.org; Sat, 09 Jan 2010 14:29:20 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o09JT9kV028533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jan 2010 11:29:09 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o09JT9QF010981; Sat, 9 Jan 2010 11:29:09 -0800 (PST) In-Reply-To: <20100109014953.GC25574@shi.workgroup> (Gregor Zattler's message of "Sat, 9 Jan 2010 02:49:53 +0100") Original-Lines: 21 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o09JT9kV028533 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.6 (--) Resent-Date: Sat, 09 Jan 2010 14:30:03 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34124 Archived-At: Gregor Zattler writes: > Dear emacs developers, > > I use bare git repositories for version contol of some dotfiles.[1] This > means that the repository ist *not* in a .git directory which is part of > the working directorys hirarchy. Instead the environment variable > GIT_DIR indicates the location of the repository and the environment > variable GIT_WORK_TREE indicates the working directory. But in emacs/vc > these dotfiles do not show up as version controlled, even when the emacs > session inherited the correct GIT_* environment variables: > > ~$ export GIT_DIR=~/.fgits/emacs.git > ~$ export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)" > ~$ printenv|grep GIT > GIT_DIR=/home/grfz/.fgits/emacs.git > GIT_WORK_TREE=/home/grfz/.fgits/emacs.git/../../ If you want to add support for this, it's quite likely that the only thing that needs to be changed is the vc-git-root in emacs/lisp/vc-git.el.