pub fn system_git( dir: Option<&Path>, args: &[&str], ) -> Result<Option<String>, String>
git, with GIT_DIR set to dir when one is given, as GitFn says.
GIT_DIR
dir
GitFn