Skip to main content

git_in

Function git_in 

Source
pub fn git_in(repo_path: &Path) -> Command
Expand description

A git command aimed at repo_path and nothing else.

current_dir alone does not win against an inherited absolute GIT_DIR: a user invoking dev-prune from inside a git hook, a git rebase -x step, or any wrapper that exports repository state would have every repository’s history read from that one repo. Cleared, the question is always answered by the repository being asked about.