cargo-watch
cargo-watch copied to clipboard
Using Git Worktree results in gitignore not being found
When using git worktree there is no ".git" folder, only a ".git" file with the following content:
gitdir: <path to main repo>/.git/worktrees/<worktree name>
This unfortunately results in no .gitignore files being parsed it seems. Running with debug shows just the default ignores being added and a bunch of
Looking in "<path>" for a .git directory
without any findings.
Is it fine to also accept a .git file? Does that have any implications?
huh. yeah, this should be added to the detection. would merge a PR, or I'll do it next week (away on travel right now)