Re: global update remove records generated by ggtags --accept-dotfiles key

Shigio YAMAGUCHI <[email protected]> Thu, 12 Dec 2024 10:32:12 +0900
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CADJmJYrbwdY9No=rUrJnnsWDrY62bFU4f1e42FXGnRSydYLurg@mail.gmail.com>
Hello,
'global -u' is a command to simplify 'gtags -i', but it can only
be used if no options are given to gtags(1).

For now there are two solutions:

1. Use of 'gtags -i --accept-dotfiles'.

2. Use of GTAGS_OPTIONS variable.

        [gtags.conf]
        +-------------------------
        |...
        |default:\
        |       :tc=3Dnative:GTAGS_OPTIONS=3D--accept-dotfiles:

Regards,
Shigio

On Wed, Dec 11, 2024 at 10:57=E2=80=AFPM sasha Kapustin <[email protected]> wro=
te:
>
> Hi!
>
> I would like to use ggtags with --accept-dotfiles option, but global -u r=
emoves records for hidden files\directories.
>
> * What is your environment (OS)?
> linux\fedora(6.11.5-300.fc41.x86_64)
>
> * Which version of Global are you using?
> 6.6.5
>
> * What did you do? (command line)
> tree -a
> =E2=94=9C=E2=94=80=E2=94=80 a.py
> =E2=94=94=E2=94=80=E2=94=80 .hidden
>     =E2=94=94=E2=94=80=E2=94=80 hidden.py
>
> export GTAGSLABEL=3Dctags
> gtags --accept-dotfiles .
>
> global -v -- Hidden  # Works fine!
> hidden/hidden.py
> 1 file located (using '/tmp/playtags/GTAGS').
>
> global -u
> playtags>global -v -- Hidden
> object not found (using '/tmp/playtags/GTAGS').
>
> Best regards, Alexander.



--=20
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB