git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git ignores /~/.config/git/

From
Jeff King <peff@peff.net>
Date
Jan 14, 2015, 21:07 UTC
Message-ID
<20150114210751.GD1155@peff.net>
In-Reply-To
<20150114193307.GA2592@lejenome.me>
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
Previous: Moez Bouhlel
Message 2 of 2 in “git ignores /~/.config/git/”
  1. Moez BouhlelJan 14, 2015
  2. Jeff KingJan 14, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.