On Wed, Jun 25, 2014 at 8:19 PM, Shigio YAMAGUCHI <[email protected]> wrote:
>
> If '+' means both of 'addition' and 'change', you need to call stat()
> to distinguish them, I think.

I get your point. I might process the file even if the GTAG file is
newer than the source file. But, I would like to believe the user's
judgement when they use '+' and interpret it as "just force an
update".

>> Without the prefix, it will perform stat() to decide. If the stat()
>> fails with ENOENT or ESTALE, I treat the file as deleted. If the
>> stat() succeeds and the time stamp is newer than the GTAG DB file, we
>> treat it as updated/modified/new, this is existing/default behavior.
>>
>> > Would you please tell me whether it is 'addition' or 'change' per file.
>>
>> This is equivalent to calling (without my modifications):
>> $ gtags --single-update path/to/some/file1.cpp
>> $ gtags --single-update path/to/some/file2.cpp
>> $ gtags --single-update path/to/some/file3.cpp
>> $ gtags --single-update path/to/some/file4.cpp
>
> Please let me ask again in another way as follows.
> Does file1.cpp exist at the time of the test?
> Does file2.cpp exist at the time of the test?
> Does file3.cpp exist at the time of the test?
> Does file4.cpp exist at the time of the test?

Yes, they all exist at the time of test.

with best regards,
dhruva

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to