pub fn discover(from: &Path) -> Option<PathBuf>Expand description
The nearest ancestor of from, from itself included, that is a git work tree root.
This is git’s own rule, which is what makes a checkout inside another checkout behave: the inner repository is the authority for everything under it, and the outer one has no say.