zed/crates/project/src
Piotr Osiewicz 31241f48be
workspace: Do not scan for .gitignore files if a .git directory is encountered along the way (#3135)
Partially fixes zed-industries/community#575

This PR will see one more fix to the case I've spotted while working on
this: namely, if a project has several nested repositories, e.g for a
structure:
/a
/a/.git/
/a/.gitignore
/a/b/
/a/b/.git/
/a/b/.gitignore

/b/ should not account for a's .gitignore at all - which is sort of
similar to the fix in commit #c416fbb, but for the paths in the project.

The release note is kinda bad, I'll try to reword it too.
- [ ] Improve release note.
- [x] Address the same bug for project files.

Release Notes:
- Fixed .gitignore files beyond the first .git directory being respected
by the worktree (zed-industries/community#575).
2023-10-17 18:56:03 +02:00
..
ignore.rs Use absolute paths to compute ignored status 2022-07-08 11:19:21 +02:00
lsp_command.rs Enable completion menu to resolve documentation when guest 2023-10-10 00:16:15 -04:00
project.rs Autocomplete docs (#3126) 2023-10-13 13:26:45 -04:00
project_settings.rs Remove concept of git diff refresh from Item trait 2023-05-25 14:29:28 -04:00
project_tests.rs chore: Use aho-corasick 1.1 in direct dependencies (#2983) 2023-09-18 17:01:08 +02:00
search.rs [WIP] Replace in project (#2984) 2023-09-21 16:27:58 +02:00
terminals.rs Add Nushell support to venv activation 2023-10-01 23:38:30 -04:00
worktree.rs workspace: Do not scan for .gitignore files if a .git directory is encountered along the way (#3135) 2023-10-17 18:56:03 +02:00
worktree_tests.rs Fix rust 1.72 warnings about shadowed glob re-exports 2023-08-25 10:25:21 -07:00