[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't exclude sub-dir
From: |
Shigio Yamaguchi |
Subject: |
Re: can't exclude sub-dir |
Date: |
Sat, 17 May 2003 21:05:50 +0900 |
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 <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3