pub fn path_inside_registered_submodule( work_tree: &Path, new_path: &str, ) -> bool
Returns true if new_path is under a submodule path declared in .gitmodules.
new_path
.gitmodules