Skip to main content

is_work_tree_root

Function is_work_tree_root 

Source
pub fn is_work_tree_root(dir: &Path) -> bool
Expand description

Whether dir is the root of a git work tree.

A .git that is a file rather than a directory is a linked work tree or a submodule, and is just as much a work tree root as the ordinary case.