Skip to contentSkip to conversation

.gitignore: Add `examples/reg-wait`

PATCH Applied Haiyue Wang 2 participants 3 messages Nov 6, 2024 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 .gitignore: Add `examples/reg-wait`

Add the built binary file name from the commit for clean git track:
abe992c56178 ("examples/reg-wait: add registered wait example")

---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
.gitignore +1 -0
index 8edb52d..7bcc514 100644
@@ -27,6 +27,7 @@
 /examples/send-zerocopy
 /examples/rsrc-update-bench
 /examples/kdigest
+/examples/reg-wait
 
 /test/*.t
 /test/*.dmesg
Signature · 1 line
2.47.0
#1 lore raw

PATCH 2/2 .gitignore: Add compilation database file and directory

The tool 'bear'[1] can be used to generate the C language server protocol database file while compiling: 'bear -- make -j $(nproc)'

Add the database file into .gitignore as Linux Kernel [2] does.

The clangd will parse the compile_commands.json language metadata into the .cache directory. Add it for clean git status track.

[1]: https://github.com/rizsotto/Bear
[2]: https://git.kernel.org/torvalds/c/26c4c71bcd9a

---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)
.gitignore +4 -0
index 7bcc514..4148091 100644
@@ -33,6 +33,10 @@
 /test/*.dmesg
 /test/output/
 
+# Clang's compilation database file and directory.
+/.cache
+/compile_commands.json
+
 config-host.h
 config-host.mak
 config.log
Signature · 1 line
2.47.0
maintainer Applied
#2 lore raw
In reply to Haiyue Wang
Quoted 4 lines · Haiyue Wang

Add the built binary file name from the commit for clean git track:
abe992c56178 ("examples/reg-wait: add registered wait example")

Applied, thanks!

[1/2] .gitignore: Add examples/reg-wait

      commit: f8375148e1a58f11b10030d1fa593aa369041b90
[2/2] .gitignore: Add compilation database file and directory
      commit: a27cad82c6c1ffb4a387967ff4b088509e10303f

Best regards,

Signature · 1 line
Jens Axboe