git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git exclude patterns for directory
@ 2007-06-19 20:08 jimmy bahuleyan
  2007-06-19 20:34 ` Alex Riesen
  0 siblings, 1 reply; 2+ messages in thread
From: jimmy bahuleyan @ 2007-06-19 20:08 UTC (permalink / raw)
  To: git

(Please Cc on replies)

I just started using git (yes, newbie ;) and hit a problem that i cant
seem to solve.

Is there a way where I could specify a pattern in .git/info/exclude that
would make git ignore directories.

Suppose I had in each of my project's sub-directories a directory called
'IGNORE/', how do I make git ignore this directory (and all it's
contents)?

I tried putting in

IGNORE/*

but this only takes care of the directory in the root dir. Then I tried

*/IGNORE/*

which doesn't work for dirs at >1 depth. I did read gitignore man page
(and it looks impossible .. ):

So, is there any way I can do this without adding a gitignore file in
each of my sub-directories?

-jb
-- 
Tact is the art of making a point without making an enemy.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git exclude patterns for directory
  2007-06-19 20:08 git exclude patterns for directory jimmy bahuleyan
@ 2007-06-19 20:34 ` Alex Riesen
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Riesen @ 2007-06-19 20:34 UTC (permalink / raw)
  To: jimmy bahuleyan; +Cc: git

jimmy bahuleyan, Tue, Jun 19, 2007 22:08:21 +0200:
> Is there a way where I could specify a pattern in .git/info/exclude that
> would make git ignore directories.

put it in .gitignore in the top-level directory (just the "IGNORE").
.gitignore works recursively.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-19 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 20:08 git exclude patterns for directory jimmy bahuleyan
2007-06-19 20:34 ` Alex Riesen

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).