login
Header Space

 
 

Re: Why does git track directory listed in .gitignore/".git/info/exclude"?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: pradeep singh rautela <rautelap@...>
Cc: <git@...>
Date: Wednesday, January 23, 2008 - 5:17 pm

On Wed, 23 Jan 2008, pradeep singh rautela wrote:

Heh.

I think your problem is that "/" itself. By adding it, the exclude 
information does *not* match the directory entry itself (because the 
directory entry itself is called just "xen-3.1.0-src" - note no slash!), 
and since you added it, it also doesn't match any names _under_ that 
directory exactly.

So what you *should* have done is to just tell git to ignore the directory 
named "xen-3.1.0-src", and you'd have been ok.

Using "xen-3.1.0-src/*" works too, but it is heavy-handed and unnecessary.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Why does git track directory listed in .gitignore/".git/info..., pradeep singh rautela, (Wed Jan 23, 9:54 am)
Re: Why does git track directory listed in .gitignore/".git/..., pradeep singh rautela, (Wed Jan 23, 10:04 am)
Re: Why does git track directory listed in .gitignore/".git/..., Linus Torvalds, (Wed Jan 23, 5:17 pm)
Re: [PATCH] gitignore(5): Allow "foo/" in ignore list to mat..., Johannes Schindelin, (Thu Jan 31, 7:38 am)
Re: [PATCH] gitignore(5): Allow "foo/" in ignore list to mat..., pradeep singh rautela, (Thu Jan 31, 7:56 am)
Re: Why does git track directory listed in .gitignore/".git/..., pradeep singh rautela, (Thu Jan 24, 6:44 am)
speck-geostationary