--- Marco Costalba <[EMAIL PROTECTED]> wrote:

> Date: Mon, 25 Jul 2005 14:34:56 -0700 (PDT)
> From: Marco Costalba <[EMAIL PROTECTED]>
> Subject: Re: [RFC] extending git-ls-files --exclude.
> To: Junio C Hamano <[EMAIL PROTECTED]>
> CC: Linus Torvalds <[EMAIL PROTECTED]>, 
>     Catalin Marinas <[EMAIL PROTECTED]>, Petr Baudis <[EMAIL PROTECTED]>
> 
> Junio C Hamano wrote:
> 
> >Linus Torvalds <[EMAIL PROTECTED]> writes:
> >
> >>On Mon, 25 Jul 2005, Junio C Hamano wrote:
> >>
> >I imagined it, but it appears to me that this is a bad example.
> >My understanding of what Catalin and the proposed patch
> >disagrees is whether the patterns in .gitignore at the top level
> >should govern files under ppc/ and mozilla-sha1/ subdirectories;
> >Catalin thinks they should not.
> >
> >What I meant by "cumulative" (now I realize I might have
> >misunderstood what Pasky wanted to mean by that word, though)
> >was not just .gitignore in subdirectory being added, but the
> >effect of patterns being added so far, either from the command
> >line or by parent directories, last while in the deeper
> >directories.
> >
> 
> This cumulative effect brakes local scoping of .gitignore files in 
> corresponding subdirectory.
> 
> As example in a directory A we can have a .gitignore file with
> 
> !foo.html
> *.html
> 
> because we want to special case 'that' foo.html 
> in 'that' directory.
> 
> If for any reason in any of part of subdirectories tree
> with base A there is (or there will be in the future) another
>  foo.html this will be automatically special cased because
>  of cumulative adding of patterns.
> 
> This can be powerful and flexible but also prone to errors. 
> 
> Peraphs can be better to use just one file with global scope
> (as example .git/exclude) and all the others .gitignore files
> with scope local to their directory.
> 
> 
> Marco
> 
> 
> 
> 
> 
> 
> 
>               
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
>  
> 



                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to