Skip to contentSkip to conversation

.gitignore: add multiple items to .gitignore

PATCH Applied Wang, Lei 3 participants 3 messages Oct 20, 2022 – Oct 22, 2022

lore
Share & tools
lore

Wang, Lei

author
#0 lore raw

PATCH 1/1 .gitignore: add multiple items to .gitignore

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.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -0
index 8aab671265..61fa39967b 100644
@@ -1,10 +1,13 @@
 /GNUmakefile
 /build/
 /.cache/
+/.vscode/
 *.pyc
 .sdk
 .stgit-*
 .git-submodule-status
+.clang-format
+.gdb_history
 cscope.*
 tags
 TAGS
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Lei

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.

Quoted 4 lines
---
  .gitignore | 3 +++
  1 file changed, 3 insertions(+)
#2 lore raw
In reply to Wang, Lei

Le 20/10/2022 à 19:19, Wang, Lei a écrit :

Quoted 23 lines

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.

---
  .gitignore | 3 +++
  1 file changed, 3 insertions(+)
.gitignore +0 -0
index 8aab671265..61fa39967b 100644
@@ -1,10 +1,13 @@
  /GNUmakefile
  /build/
  /.cache/

.gitignore line 13

Quoted 10 lines
.gitignore +3 -0
+/.vscode/
  *.pyc
  .sdk
  .stgit-*
  .git-submodule-status
+.clang-format
+.gdb_history
  cscope.*
  tags
  TAGS

Applied to my trivial-patches branch.

Thanks,
Laurent