Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Add test that checkout does not overwrite entries in .git/info/exclude

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:30

"Philip Oakley" [off-list ref] writes:
Shouldn't there be some documentation changes to support this very
useful feature.
I do not agree it is "useful", if it is info/exclude only, which by design
would not propagate across repositories and histories.

If we were to support "precious" as a feature, we should do that properly
with a properly defined syntax (e.g. just like '!' prefix is "no, this is
not 'ignored' entry", use some prefix to say "well, this is ignored in the
sense that not to be tracked, but that does not mean this can be nuked")
that can be in any exclude sources.

Exclude patterns in info/exclude should work just like ones in the in-tree
.gitignore only at different precedence for uniformity and consistency, so
the behaviour J6t showed in the new test should be fixed.

The entries in info/exclude are at lower priority than the ones in in-tree
.gitignore files, which probably was a design mistake, but that is a
separate issue.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help