# Fwd: Re: [RFC] extending git-ls-files --exclude.

1 messages from 2005-07-25 to 2005-07-25. Participants: Marco Costalba.
Thread: https://gitlist.dev/t/1337

## Marco Costalba, 2005-07-25 21:39

Subject: Fwd: Re: [RFC] extending git-ls-files --exclude.
Message-ID: <20050725213933.34939.qmail@web26308.mail.ukl.yahoo.com>
URL: https://gitlist.dev/e/20050725213933.34939.qmail%40web26308.mail.ukl.yahoo.com

```


--- Marco Costalba <mcostalba@yahoo.it> wrote:

> Date: Mon, 25 Jul 2005 14:34:56 -0700 (PDT)
> From: Marco Costalba <mcostalba@yahoo.it>
> Subject: Re: [RFC] extending git-ls-files --exclude.
> To: Junio C Hamano <junkio@cox.net>
> CC: Linus Torvalds <torvalds@osdl.org>, 
>     Catalin Marinas <catalin.marinas@gmail.com>, Petr Baudis <pasky@suse.cz>
> 
> Junio C Hamano wrote:
> 
> >Linus Torvalds <torvalds@osdl.org> 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 
 

```
