{"thread":{"id":"60062","subject":"[PATCH] gitignore: ignore clangd .cache directory","startedAt":"2023-08-04T17:13:38Z","lastAt":"2023-08-04T17:56:36Z","messageCount":2,"participants":["brian m. carlson","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"480157","messageId":"20230804171328.1737188-1-sandals@crustytoothpaste.net","threadId":"60062","inReplyTo":null,"subject":"[PATCH] gitignore: ignore clangd .cache directory","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2023-08-04T17:13:28Z","receivedAt":"2023-08-04T17:13:38Z","isPatch":true,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"From: \"brian m. carlson\" <bk2204@github.com>\n\nIn at least some versions of clangd, including version 15 in Ubuntu\n23.04, a directory, .cache, is written in the root of the repository\nwith index information about the files in the repository.  Since clangd\nis the most common language server protocol (LSP) implementation for C,\nand we already support it using the GENERATE_COMPILATION_DATABASE flags\nto make it functional, it's likely many users are using or will want to\nuse it.\n\nAs a result, ignore the \".cache\" directory to help avoid users\naccidentally committing the data.\n\nSigned-off-by: brian m. carlson <bk2204@github.com>\n---\n .gitignore | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/.gitignore b/.gitignore\nindex e875c59054..5e56e471b3 100644\n--- a/.gitignore\n+++ b/.gitignore\n@@ -222,6 +222,7 @@\n /TAGS\n /cscope*\n /compile_commands.json\n+/.cache/\n *.hcc\n *.obj\n *.lib\n"},{"id":"480160","messageId":"xmqqwmya1yk0.fsf@gitster.g","threadId":"60062","inReplyTo":"20230804171328.1737188-1-sandals@crustytoothpaste.net","subject":"Re: [PATCH] gitignore: ignore clangd .cache directory","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2023-08-04T17:56:31Z","receivedAt":"2023-08-04T17:56:36Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"brian m. carlson\" <sandals@crustytoothpaste.net> writes:\n\n> From: \"brian m. carlson\" <bk2204@github.com>\n>\n> In at least some versions of clangd, including version 15 in Ubuntu\n> 23.04, a directory, .cache, is written in the root of the repository\n> with index information about the files in the repository.  Since clangd\n> is the most common language server protocol (LSP) implementation for C,\n> and we already support it using the GENERATE_COMPILATION_DATABASE flags\n> to make it functional, it's likely many users are using or will want to\n> use it.\n>\n> As a result, ignore the \".cache\" directory to help avoid users\n> accidentally committing the data.\n\nThanks.  Let's fork from maint and queue it directly on 'next', and\nfast track it to the upcoming release.\n\n> Signed-off-by: brian m. carlson <bk2204@github.com>\n> ---\n>  .gitignore | 1 +\n>  1 file changed, 1 insertion(+)\n>\n> diff --git a/.gitignore b/.gitignore\n> index e875c59054..5e56e471b3 100644\n> --- a/.gitignore\n> +++ b/.gitignore\n> @@ -222,6 +222,7 @@\n>  /TAGS\n>  /cscope*\n>  /compile_commands.json\n> +/.cache/\n>  *.hcc\n>  *.obj\n>  *.lib\n"}]}