git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git ignores /~/.config/git/
@ 2015-01-14 19:33 Moez Bouhlel
  2015-01-14 21:07 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Moez Bouhlel @ 2015-01-14 19:33 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

git exludes /~/.config/git/ from the matching list.

~ is the name of a dir on the root of git working tree and not my user home dir.

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git ignores /~/.config/git/
  2015-01-14 19:33 git ignores /~/.config/git/ Moez Bouhlel
@ 2015-01-14 21:07 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2015-01-14 21:07 UTC (permalink / raw)
  To: Moez Bouhlel; +Cc: git

On Wed, Jan 14, 2015 at 07:33:07PM +0000, Moez Bouhlel wrote:

> git exludes /~/.config/git/ from the matching list.
> 
> ~ is the name of a dir on the root of git working tree and not my user home dir.

I'm not quite sure what you mean by "matching list". Do you mean that
the path is not listed as untracked in "git status"?

Are there any files inside the directory? Git will not mention empty
directories, as tracks only file content, not directories.

Beyond that, I cannot reproduce:

  $ git init
  $ mkdir -p '~/.config/git'
  $ git status -s

Lack of output is expected, since there are no files. Now:

  $ echo content >'~/.config/git/foo'
  $ git status -s
  ?? ~/
  $ git status -s -uall
  ?? ~/.config/git/foo

This is on Linux. Are you by any chance using Git for Windows? I wonder
if the recent chances to short-names like "foo~1" could have affected
this.

-Peff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-14 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 19:33 git ignores /~/.config/git/ Moez Bouhlel
2015-01-14 21:07 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).