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
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Date
Oct 6, 2017, 14:18 UTC
Message-ID
<1507299524.12554.9.camel@gmail.com>
In-Reply-To
<20171006061434.Horde.16MqZ-fejqXm6BLpL7prK1K@crashcourse.ca>
On Fri, 2017-10-06 at 06:14 -0400, rpjday@crashcourse.ca wrote:
Show 10 quoted lines
>    and in this funny grey area in between, we have .git/info/exclude,
> to be used for ... what, exactly? the one argument i've come up with
> is the situation where you discover that a repo you've cloned has an
> incomplete set of .gitignore patterns, and while you submit a patch
> for that to the maintainer, you can temporarily add that pattern
> to .git/info/exclude, and as soon as the patch is accepted, you can
> toss it.
> 
>    but even that isn't a really compelling reason. so what's it for?
> 
Thanks for asking this question. I have long been in the scenario you
just described above except that I didn't know of .git/info/exclude all
these days. I was longing to find if there was a way to ignore files in
 a repo without touching the .gitignore of that repo . Now I have found
one, the ".git/info/exclude".
Thanks, again.
-- 
Kaartic
Previous: Robert P. J. DayNext: Steinar Bang
Message 9 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.