Re: can't exclude sub-dir

Shigio Yamaguchi <[email protected]>
Newsgroups gmane.comp.gnu.global.general
Message-ID <[email protected]>
Hi,
> Problem:
> i use '(l)arch' as revision control.
> It creates a subdir {arch} in working dir.
> 
> ~/globalrc contains:
> :skip=SCCS/, .. ,"\{arch\}/":\
> 
> Executing 'gtags' gives:
> gtags: cannot compile regular expression.
> 
> Tried various combination of quoting/escaping in
> .globalrc (e.g. '{arch}/' \"\{arch\}/\" ..)
> always throwing the same error.
> 
> Did i simply miss the working quoting?
> Or is impossible to use {} in skip?

This is a quick hack.

With this patch, you can specify '{arch}' directory like this:

	:skip=SCCS/, .. ,{arch}/:\

I'll fix this bug with stable method in near future.
Thank you for your report!

*** find.c.org	Sat May 17 21:00:09 2003
--- find.c	Sat May 17 20:57:52 2003
***************
*** 224,230 ****
  			reg_count++;
  			strbuf_putc(reg, '/');
  			for (q = skipf; *q; q++) {
! 				if (isregexchar(*q))
  					strbuf_putc(reg, '\\');
  				strbuf_putc(reg, *q);
  			}
--- 224,230 ----
  			reg_count++;
  			strbuf_putc(reg, '/');
  			for (q = skipf; *q; q++) {
! 				if (*q == '.' || *q == '{' || *q == '}')
  					strbuf_putc(reg, '\\');
  				strbuf_putc(reg, *q);
  			}
--
Shigio Yamaguchi <[email protected]> - Tama Communications Corporation
Spare mail address: <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.