]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitignore: ignore clangd .cache directory
authorbrian m. carlson <bk2204@github.com>
Fri, 4 Aug 2023 17:13:28 +0000 (17:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 Aug 2023 17:56:51 +0000 (10:56 -0700)
In at least some versions of clangd, including version 15 in Ubuntu
23.04, a directory, .cache, is written in the root of the repository
with index information about the files in the repository.  Since clangd
is the most common language server protocol (LSP) implementation for C,
and we already support it using the GENERATE_COMPILATION_DATABASE flags
to make it functional, it's likely many users are using or will want to
use it.

As a result, ignore the ".cache" directory to help avoid users
accidentally committing the data.

Signed-off-by: brian m. carlson <bk2204@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore

index e875c5905455885b174a4591aa5bb3cc2fd0bae2..5e56e471b344ef45e026847a6865645d61908be7 100644 (file)
 /TAGS
 /cscope*
 /compile_commands.json
+/.cache/
 *.hcc
 *.obj
 *.lib