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

Re: is there a truly compelling rationale for .git/info/exclude?

From
SBSteinar Bang <sb@dod.no>
Date
Oct 8, 2017, 08:41 UTC
Message-ID
<86efqe3ub1.fsf@dod.no>
In-Reply-To
<20171006061434.Horde.16MqZ-fejqXm6BLpL7prK1K@crashcourse.ca>
>>>>> rpjday@crashcourse.ca:
>   but even that isn't a really compelling reason. so what's it for?
I use it to ignore stuff in my git-versioned home directory.

Every time I use a new program and it creates a config file or a config directory, it shows up as clutter in magit in my git versioned home directory.

I started with putting the stuff to be ignored in .gitignore, but since I run different stuff on different machines and on different OSes, .gitignore started to contain irrelevant stuff (ignoring a stuff from a program that was run once and then never again, ignoring stuff on one machine that maybe should not be ignored on a different machine), and then I figured it was much simpler to just ignore stuff repo-locally in .git/info/exclude

Previous: Kaartic Sivaraam
Message 10 of 10 in “is there a truly compelling rationale for .git/info/exclude?”
  1. rpjday@crashcourse.caOct 6, 2017
  2. Junio C HamanoOct 6, 2017
  3. Robert P. J. DayOct 6, 2017
  4. Jonathan NiederOct 6, 2017
  5. brian m. carlsonOct 7, 2017
  6. Johannes SchindelinOct 12, 2017
  7. Jeff KingOct 12, 2017
  8. Robert P. J. DayOct 13, 2017
  9. Kaartic SivaraamOct 6, 2017
  10. Steinar BangOct 8, 2017

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.