fn replace_subtree_change( root: &Path, path: &Path, respect_gitignore: bool, ) -> Option<FileIndexChange>