login
Header Space

 
 

gitignore: negating path patterns

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, May 21, 2008 - 10:40 am

Hi there

It seems that negating path patterns in gitignore doesn't work, or I 
don't understand it (or both). With the attached script, git status 
(1.5.5.1) reports "dir/a" as new and "dir/b" as untracked. I would 
rather expect it to report "dir/c" as untracked also.

It seems that "!b" matches to include "dir/b" (reverting the exclusion 
"*" as expected), whereas "!dir/" does not match to include "dir/c".

What's going on here?

Michael

P.S.: "*" in dir/.gitignore would do what I want, but I want all 
patterns in one place.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
gitignore: negating path patterns, Michael J Gruber, (Wed May 21, 10:40 am)
speck-geostationary