Skip to content

Commit 294550b

Browse files
committedSep 18, 2023
Modify .gitignore to track directories without source files
1 parent 873e6ba commit 294550b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
 

‎.gitignore

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by Cargo
22
# will have compiled files and executables
3-
/target/
3+
debug/
4+
target/
45

56
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
67
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
@@ -9,10 +10,15 @@ Cargo.lock
910
# These are backup files generated by rustfmt
1011
**/*.rs.bk
1112

13+
# MSVC Windows builds of rustc generate these, which store debugging information
14+
*.pdb
15+
1216
# Ignore user settings file
1317
.env
1418
/.vscode/
1519

16-
# Ignore source code files
20+
# Ignore source code files but track the directories themselves using .gitkeep
1721
/src/contest/*
22+
!/src/contest/.gitkeep
1823
/src/lib/src/*
24+
!/src/lib/src/.gitkeep

‎src/contest/.gitkeep

Whitespace-only changes.

‎src/lib/src/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.