all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric James Michael Ritz <Eric@cybersprocket.com>
To: Dan Nicolaescu <dann@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [vc-git] Showing ‘.git/*’ files in vc-dir
Date: Tue, 29 Jun 2010 17:16:45 -0400	[thread overview]
Message-ID: <4C2A62BD.40507@cybersprocket.com> (raw)
In-Reply-To: <yxq4ogly2ya.fsf@fencepost.gnu.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 06/29/2010 04:54 PM, Dan Nicolaescu wrote:
> Eric James Michael Ritz <Eric@cybersprocket.com> writes:
>
>> On 06/29/2010 03:54 PM, Dan Nicolaescu wrote:
>>> Eric James Michael Ritz <Eric@cybersprocket.com> 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’s thoughts on this.  If this sounds
>>>
>>> Can you please provide a recipe to reproduce this?  Please start with emacs -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.

You are correct, I do.

> 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 ...

I am not sure either.  My idea was to make vc-dir ignore the files
in .git.  It does not seem like there would be any negative
ramifications from that, but that’s going on my assumption that no one
would ever want to perform operations on those files from vc-dir.

- --
Eric James Michael Ritz
Cyber Sprocket Labs
(843) 225-3830
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMKmK7AAoJEEHUZXw5hMWsFwkH/2gVMKUX9R4SXOhFt9/xNXiL
TczSpFDKeuaS+JV4ZrEHNHcd5mpAdQ+oXxVfbQDsg9RDod6OcHDdCSa4J9qktKId
geA3y+HTYQ9xIGSHE0u8OwdilXSsZBwmhKYf9YIh8eCpDNDdfc2jsuqoaWZfVGkR
jOgy4XPBiHJ6ISLgn+VwT8suXliBHgd2jovXOA23XNcp6OjjLsUY4Soysa4VNJv0
YGxs3BRSM6L5OBo/VT0BJfQFV4xvh9Hp3QxNF71jkibDfuCwwLt4roVIOj1ckV7K
XWkf90zwTLO5bYwpcoAu71DcytJ0KkaVCJFA38d1TLxpiK61QEP6R569qh0JCnY=
=QFGg
-----END PGP SIGNATURE-----



  reply	other threads:[~2010-06-29 21:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29 18:29 [vc-git] Showing ‘.git/*’ files in vc-dir Eric James Michael Ritz
2010-06-29 19:54 ` Dan Nicolaescu
2010-06-29 20:07   ` Eric James Michael Ritz
2010-06-29 20:54     ` Dan Nicolaescu
2010-06-29 21:16       ` Eric James Michael Ritz [this message]
2010-07-01  1:27       ` Stefan Monnier
2010-07-01  3:06         ` Dan Nicolaescu
2010-07-01  5:47           ` Miles Bader
2010-07-01  6:44             ` Dan Nicolaescu
2010-07-01 13:40               ` Eric James Michael Ritz
2010-07-04 17:26               ` Eric James Michael Ritz
2010-07-04 19:30                 ` Dan Nicolaescu
2010-07-04 19:45                   ` Eric James Michael Ritz
2010-07-04 17:27               ` Stefan Monnier
2010-07-04 19:26                 ` Dan Nicolaescu
2010-07-01  7:36           ` Jan Djärv
2010-07-01  8:32             ` Dan Nicolaescu
2010-07-01  8:39               ` Glenn Morris
2010-07-01  9:29                 ` Jan Djärv
2010-07-01 15:34                 ` Dan Nicolaescu
2010-07-01  9:23               ` Jan Djärv
2010-07-01 15:26                 ` Dan Nicolaescu
2010-07-01 16:25                   ` Jan Djärv
2010-07-23 15:30                     ` Stefan Monnier
2010-07-01  8:35             ` Glenn Morris
2010-07-01  9:16               ` Miles Bader
2010-07-01  9:22                 ` Deniz Dogan
2010-07-01 15:23                 ` Dan Nicolaescu
2010-07-01 21:14                 ` Glenn Morris
2010-07-01 22:24                   ` René Kyllingstad
2010-07-02  3:14                     ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C2A62BD.40507@cybersprocket.com \
    --to=eric@cybersprocket.com \
    --cc=dann@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.