* Can the git exclude files mask out whole directories?
@ 2006-09-18 18:28 Alex Bennee
2006-09-18 18:32 ` Shawn Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Alex Bennee @ 2006-09-18 18:28 UTC (permalink / raw)
To: git
Hi,
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/*
Amongst many variants and:
git-ls-files --others --exclude-from=.git/info/exclude
And all my CVS directories still get listed. I can get what I want with
adding:
# Ignore CVS files
#
Entries
Entries.Log
Repository
Root
Tag
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?
Confused,
--
Alex, homepage: http://www.bennee.com/~alex/
Majority, n.: That quality that distinguishes a crime from a law.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can the git exclude files mask out whole directories?
2006-09-18 18:28 Can the git exclude files mask out whole directories? Alex Bennee
@ 2006-09-18 18:32 ` Shawn Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Pearce @ 2006-09-18 18:32 UTC (permalink / raw)
To: Alex Bennee; +Cc: git
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-18 18:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-18 18:28 Can the git exclude files mask out whole directories? Alex Bennee
2006-09-18 18:32 ` Shawn Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).