Skip to content

Commit b4b32ff

Browse files
authored
gitignore: allow target to be a symlink (#6205)
Allows the `target` build directory to be ignored when symlinked from another partition. With the `target/` spec, git doesn't ignore symlinks because it expects a directory, of which a symlink is not. Prior Art: rust-lang/cargo#4944 As seen in; - https://github.com/rust-lang/rust/blob/6abb6385b2cb7249f67b9b3ce7522527767dd907/.gitignore#L47 - https://github.com/rust-lang/cargo/blob/1c034752de0df744fcd7788fcbca158830b8bf85/.gitignore#L1
1 parent a78aa02 commit b4b32ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Generated by Cargo
22
# will have compiled files and executables
3-
target/
4-
target_expensive/
5-
sandbox/
3+
target
4+
/target_expensive/
5+
/sandbox
66
docker-build
77
/conf/grafana-dashboard-main-testnet.json
88
/storage/

0 commit comments

Comments
 (0)