Skip to main content

is_work_tree

Function is_work_tree 

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

Whether dir sits inside a git work tree. False when git is missing entirely, which is the same practical answer for every caller here.