Re: Can the git exclude files mask out whole directories?

From: Shawn Pearce <spearce@spearce.org>
Date: 2006-09-19 04:32:20
Alex Bennee <kernel-hacker@bennee.com> wrote:
> I may be being a bit dim but according to the man page I should be able
> to specify paths with /'s in them. I want to exclude all CVS directories
> so I can commit stuff. I have tried:
> 
> #
> # Ignore CVS files
> #
> */CVS/*

Just use CVS in your info/exclude file:

	#
	# Ignore CVS files
	#
	CVS
 
> to my exclude file but that seems suboptimal. Besides I'll also want to
> be ignoring whole build directories later. Have I subtly misunderstood
> the man page?

I ignore my build directories all the time by just putting their
names in .gitignore, with no trailing /.

-- 
Shawn.
-
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
Received on Tue Sep 19 04:32:56 2006

This archive was generated by hypermail 2.1.8 : 2006-09-19 04:33:44 EST