On 14.8.2012 18:53, Jens Elkner wrote:
On Tue, Aug 14, 2012 at 05:00:51PM +0200, Lubos Kosco wrote:
afaik -I ignores per pattern , not per extension, so your awareness isn't
correct
honestly I'd like this ignoring to work better so it would distinguish
between directories and files at least, so imho it's far from perfect, but
then it's usable for the time being
Well, if the ignored name "pattern" contains a '*' or '?', it behaves
similar to shell globbing. If no match, it must be equal to the basename of
the file or directory. If still not matched, it gets ignored if the full
path or the basename of the file/dir in question ends with the ignored
name. So a little bit fuzzy, but should allow, what you need.
well, I still don't like it, maybe Trond will improve it ;)
e.g. we used to filter out by default
"tag"
which is nice, since it filters out ctag output files, but then I had a
directory called tag with my code and it wasn't shown nor indexed (and I
needed it once and was surprised that it's missing)
so I removed that pattern, but still, it would make sense to filter out
files named tag, but not directories which names contain tag (or are
named tag in fact)
hmm?
L
Have fun,
jel.
see
http://src.iws.cs.ovgu.de/source/xref/opengrok-jel/src/org/opensolaris/opengrok/index/Filter.java#match
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss