Skip to content

Commit a5c0160

Browse files
bk2204gitster
authored andcommitted
gitignore: ignore clangd .cache directory
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fb7d80e commit a5c0160

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
/TAGS
223223
/cscope*
224224
/compile_commands.json
225+
/.cache/
225226
*.hcc
226227
*.obj
227228
*.lib

0 commit comments

Comments
 (0)