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
Junio C Hamano <gitster@pobox.com>
Date
Oct 6, 2017, 12:13 UTC
Message-ID
<xmqqmv54v5h6.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171006061434.Horde.16MqZ-fejqXm6BLpL7prK1K@crashcourse.ca>
rpjday@crashcourse.ca writes:
Show 5 quoted lines
>   at the other end, users are certainly welcome to add extra patterns
> to be ignored, based purely on the way they work -- perhaps based on
> their choice of editor, they might want to exclude *.swp files, or
> if working on a Mac, ignore .DS_Store, and so on, using a
> core.excludesFile setting.

This is primarily why .git/info/exclude exists. A user who does not use the same set of tools to work on different projects may not be able to use ~/.gitconfig with core.excludesFile pointing at a single place that applies to _all_ repositories the user touches.

Also, core.excludesFile came a lot later than in-project and in-repository exclude list, IIRC.

Don't waste time by seeking a "compelling" reason. A mere "this is the most expedite way to gain convenience" back when something was introduced could be an answer, and it is way too late to complain about such a choice anyway.

Previous: rpjday@crashcourse.caNext: Robert P. J. Day
Message 2 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.