public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] Add compile_flags.txt to gitignore file
@ 2026-03-25  7:55 Andrea Cervesato
  2026-03-25  9:12 ` Petr Vorel
  2026-03-25 10:39 ` Jan Polensky
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Cervesato @ 2026-03-25  7:55 UTC (permalink / raw)
  To: Linux Test Project

From: Andrea Cervesato <andrea.cervesato@suse.com>

Add rule to ignore clangd LSP configuration from local repository.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Clangd is extensively used by IDEs and generic LSP wrappers to setup
clangd configuration. This patch removes it from gitignore so we can
safely avoid it gets into the patch-set when it's sent.
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 24f4a4ea834e0b919e640e879fe5e5b5d7aec466..6cd409489f266c4805dcf4633957892b10ea032a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,3 +60,4 @@ patches/
 logfile.*
 
 /utils/benchmark/ebizzy-0.3/ebizzy
+/compile_flags.txt

---
base-commit: b874b6a264cf4f343c17d543ebe4ff91fbb89042
change-id: 20260325-compile_flags_gitignore-c12d8f65ef2d

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH] Add compile_flags.txt to gitignore file
  2026-03-25  7:55 [LTP] [PATCH] Add compile_flags.txt to gitignore file Andrea Cervesato
@ 2026-03-25  9:12 ` Petr Vorel
  2026-03-25 10:39 ` Jan Polensky
  1 sibling, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2026-03-25  9:12 UTC (permalink / raw)
  To: Andrea Cervesato; +Cc: Linux Test Project

Hi Andrea,

> Add rule to ignore clangd LSP configuration from local repository.

Acked-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH] Add compile_flags.txt to gitignore file
  2026-03-25  7:55 [LTP] [PATCH] Add compile_flags.txt to gitignore file Andrea Cervesato
  2026-03-25  9:12 ` Petr Vorel
@ 2026-03-25 10:39 ` Jan Polensky
  2026-03-25 10:47   ` Andrea Cervesato via ltp
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Polensky @ 2026-03-25 10:39 UTC (permalink / raw)
  To: Andrea Cervesato, Linux Test Project

> From: Andrea Cervesato <andrea.cervesato@suse.com>
>
> Add rule to ignore clangd LSP configuration from local repository.
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
> Clangd is extensively used by IDEs and generic LSP wrappers to setup
> clangd configuration. This patch removes it from gitignore so we can
> safely avoid it gets into the patch-set when it's sent.
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 24f4a4ea834e0b919e640e879fe5e5b5d7aec466..6cd409489f266c4805dcf4633957892b10ea032a 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -60,3 +60,4 @@ patches/
>  logfile.*
>
>  /utils/benchmark/ebizzy-0.3/ebizzy
> +/compile_flags.txt
Hi Andrea,

thanks for the patch!

One thought: `compile_commands.json` (the compilation database) is also
commonly generated locally (e.g. with bear, compiledb), and not
necessarily in the repository root (often in a build directory). Since
the intent here is to prevent accidental inclusion in patch series, would
it make sense to ignore that filename as well?

In `.gitignore` we could do this without anchoring to the repo root, e.g.:
  compile_commands.json

Thanks & best regards,
Jan
>
> ---
> base-commit: b874b6a264cf4f343c17d543ebe4ff91fbb89042
> change-id: 20260325-compile_flags_gitignore-c12d8f65ef2d
>
> Best regards,
> --
> Andrea Cervesato <andrea.cervesato@suse.com>
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH] Add compile_flags.txt to gitignore file
  2026-03-25 10:39 ` Jan Polensky
@ 2026-03-25 10:47   ` Andrea Cervesato via ltp
  0 siblings, 0 replies; 4+ messages in thread
From: Andrea Cervesato via ltp @ 2026-03-25 10:47 UTC (permalink / raw)
  To: Jan Polensky; +Cc: Linux Test Project

Hi Jan,

> One thought: `compile_commands.json` (the compilation database) is also
> commonly generated locally (e.g. with bear, compiledb), and not
> necessarily in the repository root (often in a build directory). Since
> the intent here is to prevent accidental inclusion in patch series, would
> it make sense to ignore that filename as well?

I think it's a good idea, thanks. Will send v2.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2026-03-25 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25  7:55 [LTP] [PATCH] Add compile_flags.txt to gitignore file Andrea Cervesato
2026-03-25  9:12 ` Petr Vorel
2026-03-25 10:39 ` Jan Polensky
2026-03-25 10:47   ` Andrea Cervesato via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox