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

Re: gitignore vs. exclude vs assume-unchanged?

From
Aalex@bellandwhistle.net <alex@bellandwhistle.net>
Date
Apr 18, 2014, 00:36 UTC
Message-ID
<4dd8389939fbf3dc77b58adcca7b17c1@bellandwhistle.net>
In-Reply-To
<20140416234555.GA4309@google.com>
On 2014-04-16 16:45, Jonathan Nieder wrote:
Show 10 quoted lines
> Hi,
> 
> alex@bellandwhistle.net wrote:
> 
>> In particular, 'exclude' is spottily documented.
> 
> Where did you expect to read about it?  I see some mention of
> .git/info/exclude in the gitignore(5) page, but I wouldn't be
> surprised if there's room for improvement there (improvements
> welcome).
I suppose I might consider amending the opening sentence at:
http://git-scm.com/docs/gitignore
from:

"A gitignore file specifies intentionally untracked files that Git should ignore."

to something that makes the point earlier about the similarity:

"Both gitignore and $GIT_DIR/info/exclude files specify intentionally untracked files that Git should ignore."

or:

"Like the $GIT_DIR/info/exclude file, gitignore files specify intentionally untracked files that Git should ignore. The difference is that files matched by a pattern in a gitignore file will be untracked for all users of the repository."

or somesuch.

The other thing is that there is no warning in the docs that assume-unchanged is not an absolute promise to ignore. This is news to me. I don't see this anywhere. I understand now that the use case is performance, but that could be clearer.

thanks again Alex

Previous: Jonathan NiederNext: Andrew Ardill
Message 5 of 10 in “gitignore vs. exclude vs assume-unchanged?”
  1. alex@bellandwhistle.netApr 16, 2014
  2. Junio C HamanoApr 16, 2014
  3. alex@bellandwhistle.netApr 16, 2014
  4. Jonathan NiederApr 16, 2014
  5. alex@bellandwhistle.netApr 18, 2014
  6. Andrew ArdillApr 22, 2014
  7. Junio C HamanoApr 22, 2014
  8. alex@bellandwhistle.netApr 25, 2014
  9. luc.linux@mailoo.orgApr 26, 2014
  10. ZéApr 26, 2014

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.