Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

From: Jeff King <hidden>
Date: 2016-06-15 22:59:11

Possibly related (same subject, not in this thread)

On Thu, Nov 07, 2013 at 09:27:16PM +0100, Karsten Blees wrote:
quoted
How about:

  It is not possible to re-include a file if a parent directory of that
  file is excluded. Once git considers a directory excluded, it does not
  descend into the directory to consider its contents further.
Hmm...an unsuspecting reader might still assume that it works in
top-level .gitignore, given the precendence rules above...

How about this:

   It is not possible to re-include a file if a parent directory of that
   file is excluded. Git doesn't list excluded directories for performance
   reasons, so any patterns on contained files have no effect, no matter
   where they are defined.
Yeah, I like that.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help