[libcamera-devel] [RFC v3 3/5] gitignore: add .cache

Tomi Valkeinen tomi.valkeinen at ideasonboard.com
Fri Dec 10 12:44:04 CET 2021


On 09/12/2021 18:56, Laurent Pinchart wrote:
> Hi Tomi,
> 
> Thank you for the patch.
> 
> On Thu, Dec 09, 2021 at 11:29:04AM +0200, Tomi Valkeinen wrote:
>> clangd produces a .cache directory. Add it to .gitignore.
>>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
>> ---
>>   .gitignore | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/.gitignore b/.gitignore
>> index d3d73615..cca829fa 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -5,3 +5,4 @@ build/
>>   patches/
>>   *.patch
>>   *.pyc
>> +.cache
> 
> If this is a directory,
> 
> .cache/
> 
> could be better. Is the directory created at the top level only, or are
> there multiple directories through the source tree ? In the first case,
> /.cache/ could also be a better match (I'll submit a patch to turn
> build/ and patches/ into /build/ and /patches/).
> 
> I'm not thrilled about adding ignore patterns related to third-party
> tools, but I'm not opposed to it either. I however wonder if this use
> case wouldn't be better supported by a /.cache/ pattern in
> $XDG_CONFIG_HOME/git/ignore though, as that would allow you to use
> clangd in all projects without adding a patch similar to this in all of
> them. What do you think ?

Yes, I can do that.

  Tomi


More information about the libcamera-devel mailing list