Skip to main content

git_work_tree

Function git_work_tree 

Source
pub fn git_work_tree(target: &Utf8Path) -> Result<bool, RkError>
Expand description

Whether target sits in a non-bare Git work tree.

A directory Git reports as no repository, and a bare repository, answer false: both are facts the setup skill stops on, because the method lands files a work tree commits.

ยงErrors

RkError::Subprocess where git does not run or refuses for a reason other than the target not being a repository.