[PATCH] Allowing multiple project-specific .hgignore files
kevinvisac at gmail.com
Sun Apr 29 21:26:08 CDT 2007
On Sun, 2007-04-29 at 21:05 -0500, Matt Mackall wrote:
> [reply-to set to mercurial-devel, where such things go now]
> On Mon, Apr 30, 2007 at 10:43:28AM +1000, Stuart wrote:
> > Hey,
> > I've created a patch which allows .hgignore to be either a file (in the
> > current style) or a directory containing multiple files, all of which
> > are parsed for ignore patterns.
> That's kind of neat.
> It could also be done by adding an include: syntax to .hgignore, which
> might be more flexible and simpler?
*** I don't think it would be simpler, but it might be slightly more
You could certainly accomplish the same functionality using includes
(but only if they failed silently). It's probably not as tidy, however.
If I want to maintain local ignore rules (in a repo where the .hgignore
file is committed), I have to add an include: directive to bring them
in. Then, after I commit and push, everyone's repos will be polluted by
an include: directive that is relevant only to me.
Also, using the .hgignore/ directory makes for a cleaner directory tree,
Nothing to say we can't have both, however.
More information about the Mercurial