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

From: Marco Costalba <hidden>
Date: 2016-06-15 22:42:02

--- Marco Costalba <mcostalba@yahoo.it> wrote:
Date: Mon, 25 Jul 2005 14:34:56 -0700 (PDT)
From: Marco Costalba <redacted>
Subject: Re: [RFC] extending git-ls-files --exclude.
To: Junio C Hamano <redacted>
CC: Linus Torvalds <torvalds@osdl.org>, 
    Catalin Marinas [off-list ref], Petr Baudis [off-list ref]

Junio C Hamano wrote:
quoted
Linus Torvalds [off-list ref] writes:
quoted
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 
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help