ZIm/crates/fs/src
Cole Miller f3f2c6d811
Fix commondir discovery for git submodules (#28802)
The implementation of commondir discovery in #27885 was wrong, most
significantly for submodules but also for worktrees in rarer cases. The
correct procedure, implemented in this PR, is:

> If `.git` is a file, look at the `gitdir` it points to. If that
directory has a file called `commondir`, read that file to find the
commondir. (This is what happens for worktrees.) Otherwise, the
commondir is the same as the gitdir. (This is what happens for
submodules.)

Release Notes:

- N/A
2025-04-15 23:32:59 -04:00
..
fake_git_repo.rs git: Amend (#28187) 2025-04-14 21:07:19 +05:30
fs.rs Fix commondir discovery for git submodules (#28802) 2025-04-15 23:32:59 -04:00
fs_watcher.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
mac_watcher.rs git: Add support for opening git worktrees (#20164) 2024-11-06 09:43:39 +01:00