pub fn find_toplevel(path: &Path) -> Option<PathBuf>Expand description
Resolves the actual working-tree root for path, which may be a
subdirectory of the repository. git diff/git cat-file paths are
always reported relative to this root, not to an arbitrary -C cwd -
running the pipeline with path still set to a subdirectory silently
produces zero fragments because file lookups get double-prefixed
(e.g. src/src/app.py).