From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: [vc-git] Showing =?utf-8?b?4oCYLmdpdC8q4oCZ?= files in vc-dir Date: Tue, 29 Jun 2010 16:54:37 -0400 Message-ID: References: <4C2A5279.2080706@cybersprocket.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277844886 28380 80.91.229.12 (29 Jun 2010 20:54:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 20:54:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eric James Michael Ritz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 29 22:54:45 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OThpM-0004c8-Eb for ged-emacs-devel@m.gmane.org; Tue, 29 Jun 2010 22:54:44 +0200 Original-Received: from localhost ([127.0.0.1]:34323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OThpL-0001aR-UX for ged-emacs-devel@m.gmane.org; Tue, 29 Jun 2010 16:54:43 -0400 Original-Received: from [199.232.76.173] (port=46293 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OThpH-0001aK-Bv for emacs-devel@gnu.org; Tue, 29 Jun 2010 16:54:39 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OThpG-0001IE-71 for emacs-devel@gnu.org; Tue, 29 Jun 2010 16:54:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38581) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OThpG-0001IA-1I for emacs-devel@gnu.org; Tue, 29 Jun 2010 16:54:38 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OThpF-0004Cg-L7; Tue, 29 Jun 2010 16:54:37 -0400 In-Reply-To: <4C2A5279.2080706@cybersprocket.com> (Eric James Michael Ritz's message of "Tue\, 29 Jun 2010 16\:07\:21 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126519 Archived-At: Eric James Michael Ritz writes: > On 06/29/2010 03:54 PM, Dan Nicolaescu wrote: >> Eric James Michael Ritz writes: >> >>> When I `vc-dir` for a directory that is under version control with >>> Git, I see that files under the `.git` directory are displayed, often >>> as being untracked. [...] >>> >>> I was curious about anyone else=E2=80=99s thoughts on this. If this so= unds >> >> Can you please provide a recipe to reproduce this? Please start with em= acs -Q. > > Unfortunately no. I created a new repository and then edited some > files using emacs -Q, and from there I could not cause vc-dir to > display any of the .git/* files. I have to admit I am not one-hundred > percent sure what causes it, and it is not consistent either. I do > sometimes run git-commit from the command-line during work instead of > using `C-x v v`, so perhaps that is related? Yep, I think that's it. You probably have EDITOR set to emacsclient.=20=20 So git-commit will use the same emacs instance that's running vc-dir. It looks like git puts the COMMIT_MESSAGE in .git and vc-dir shows it. What probably happens is that (vc-git-state ".git/COMMIT_MESSAGE") returns = 'unregistered. Not sure what the best solution is: make vc-git-state return nil, or make vc-dir ignore files in .git, or something else ...