git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitignore: ignore clangd .cache directory
@ 2023-08-04 17:13 brian m. carlson
  2023-08-04 17:56 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: brian m. carlson @ 2023-08-04 17:13 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Taylor Blau

From: "brian m. carlson" <bk2204@github.com>

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>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index e875c59054..5e56e471b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -222,6 +222,7 @@
 /TAGS
 /cscope*
 /compile_commands.json
+/.cache/
 *.hcc
 *.obj
 *.lib

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-04 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-04 17:13 [PATCH] gitignore: ignore clangd .cache directory brian m. carlson
2023-08-04 17:56 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).