Thread (3 messages) flat view 3 messages, 2 authors, 2021-07-05

Re: [PATCH] docs: .gitignore in parents is current repo only

From: Andrew Berry <hidden>
Date: 2021-07-05 17:30:59

On 2 Jul 2021, at 20:06, Junio C Hamano wrote:
I would have thought that "up to the toplevel of the work
tree" would be sufficiently clear where the upward traversal of the
directories ends, i.e. at the repository boundary.
Seems reasonable. What if we move that note to come after "any parent 
directory"?

On 2 Jul 2021, at 20:21, Bagas Sanjaya wrote:
So for example I have `something/foo` in ../.gitignore, but .gitignore 
(in current directory `something`) has `foo`. Is .gitignore from 
current directory or ../.gitignore takes effect?
In this case, both rules resolve to the same path, so I don't think it 
matters? But in practice I'd expect it to be `something/.gitignore`, 
since you can negate the pattern from the parent ignore file.
Also s/toplevel/top level/
That showed up in the diff due to word wrapping. If no other changes are 
accepted, I'll file a followup after to get this fixed on it's own.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help