bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: skipping dot files and "-f" option


From: Shigio YAMAGUCHI
Subject: Re: skipping dot files and "-f" option
Date: Tue, 31 Jan 2012 05:22:00 +0900

Hello,
> The "-f" option of gtags, where you tell exactly, which files to
> include should do exactly that IMHO, and not skip dotfiles/dotdirs even
> when given by the "-f" option, which is the current behaviour.
> 
> I consider this a bug, that
>  - files explicitly submitted by the user are not treated

In GLOBAL, it is gtags that decides a set of target files.
The purpose of the -f option is to narrow down the set.
It is functionally the same as 'skip list'.

So, even if you specify the following files, gtags ignores them.
- dot files and dot directories
- binary files
- files which are out of the project

>  - there is not even a workaround to treat those files

That's right at present.

> I see two solutions:
> A) take every file from the "-f" option. 
> B) create another command line option whether to skip dotfiles/dotdirs.
> 
> I prefer solution A), what do you think?

In UNIX, since dot files and dot directories are used to hide their
own figure from users, the present operation should be satisfactory
for almost all persons.

So, I would like to select B). How about adding the following option?

$ gtags --accept-dotfiles       # accept dot files and dot directories

Regards,
Shigio
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]