Skip to content

Commit

Permalink
gitignore: allow target to be a symlink (#6205)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
miraclx authored Jan 28, 2022
1 parent a78aa02 commit b4b32ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Generated by Cargo
# will have compiled files and executables
target/
target_expensive/
sandbox/
target
/target_expensive/
/sandbox
docker-build
/conf/grafana-dashboard-main-testnet.json
/storage/
Expand Down

0 comments on commit b4b32ff

Please sign in to comment.