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

Re: wishlist: git gui not listing untracked files in unstaged list

From
PHPatrick Higgins <patrick133t@yahoo.com>
Date
Mar 10, 2010, 22:00 UTC
Message-ID
<loom.20100310T225229-469@post.gmane.org>
In-Reply-To
<20100310200728.GD21994@spearce.org>
Shawn O. Pearce <spearce <at> spearce.org> writes:
> Junio C Hamano <gitster <at> pobox.com> wrote:
> I have no idea why the original poster isn't getting his ignore
> list(s) to work.  I also have no idea why dropping the --others
> flag from the ls-files command gets him a useful result.

I'm seeing a similar problem. For me, it's caused by defining core.excludesfile to "~/.gitexcludes". The git config documentation says that this will be expanded to my home directory. It appears that git gui doesn't do this and instead runs "git ls-files --others -z --exclude-from='~/.gitexcludes'"

That chokes with:
fatal: cannot use ~/.gitexcludes as an exclude file

Changing core.excludesfile to use a fully-qualified path instead of ~/ fixes the problem for me.

Previous: MALAISE PascalNext: Jeff King
Message 5 of 13 in “wishlist: git gui not listing untracked files in unstaged list”
  1. MALAISE PascalMar 10, 2010
  2. Junio C HamanoMar 10, 2010
  3. Shawn O. PearceMar 10, 2010
  4. MALAISE PascalMar 10, 2010
  5. Patrick HigginsMar 10, 2010
  6. Jeff KingMar 10, 2010
  7. Shawn O. PearceMar 10, 2010
  8. Junio C HamanoMar 10, 2010
  9. Jeff KingMar 10, 2010
  10. Jeff KingMar 10, 2010
  11. Johannes SixtMar 11, 2010
  12. Jeff KingMar 11, 2010
  13. Andreas SchwabMar 11, 2010

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.