diff mbox series

.gitignore: add multiple items to .gitignore

Message ID 20221020171921.1078533-1-lei4.wang@intel.com (mailing list archive)
State New, archived
Headers show
Series .gitignore: add multiple items to .gitignore | expand

Commit Message

Lei Wang Oct. 20, 2022, 5:19 p.m. UTC
Add /.vscode/, .clang-format and .gdb_history to .gitignore because:

 - For VSCode, workspace settings as well as debugging and task
 configurations are stored at the root in a .vscode folder;
 - For ClangFormat, the .clang-format file is searched relative to
 the current working directory when reading stdin;
 - For GDB, GDB command history file defaults to the value of the
 environment variable GDBHISTFILE, or to ./.gdb_history if this
 variable is not set.

Signed-off-by: Wang, Lei <lei4.wang@intel.com>
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)

Comments

Philippe Mathieu-Daudé Oct. 20, 2022, 10:02 a.m. UTC | #1
On 20/10/22 19:19, Wang, Lei wrote:
> Add /.vscode/, .clang-format and .gdb_history to .gitignore because:
> 
>   - For VSCode, workspace settings as well as debugging and task
>   configurations are stored at the root in a .vscode folder;
>   - For ClangFormat, the .clang-format file is searched relative to
>   the current working directory when reading stdin;
>   - For GDB, GDB command history file defaults to the value of the
>   environment variable GDBHISTFILE, or to ./.gdb_history if this
>   variable is not set.
> 
> Signed-off-by: Wang, Lei <lei4.wang@intel.com>
> ---
>   .gitignore | 3 +++
>   1 file changed, 3 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Laurent Vivier Oct. 22, 2022, 8:48 p.m. UTC | #2
Le 20/10/2022 à 19:19, Wang, Lei a écrit :
> Add /.vscode/, .clang-format and .gdb_history to .gitignore because:
> 
>   - For VSCode, workspace settings as well as debugging and task
>   configurations are stored at the root in a .vscode folder;
>   - For ClangFormat, the .clang-format file is searched relative to
>   the current working directory when reading stdin;
>   - For GDB, GDB command history file defaults to the value of the
>   environment variable GDBHISTFILE, or to ./.gdb_history if this
>   variable is not set.
> 
> Signed-off-by: Wang, Lei <lei4.wang@intel.com>
> ---
>   .gitignore | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 8aab671265..61fa39967b 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,10 +1,13 @@
>   /GNUmakefile
>   /build/
>   /.cache/
> +/.vscode/
>   *.pyc
>   .sdk
>   .stgit-*
>   .git-submodule-status
> +.clang-format
> +.gdb_history
>   cscope.*
>   tags
>   TAGS

Applied to my trivial-patches branch.

Thanks,
Laurent
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 8aab671265..61fa39967b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,13 @@ 
 /GNUmakefile
 /build/
 /.cache/
+/.vscode/
 *.pyc
 .sdk
 .stgit-*
 .git-submodule-status
+.clang-format
+.gdb_history
 cscope.*
 tags
 TAGS