Skip to main content

collect_git_context

Function collect_git_context 

Source
pub fn collect_git_context() -> Option<GitContext>
Expand description

Collect a GitContext for the current working directory.

Returns None when the CWD is not inside a git repository.

When SHIPPER_GIT_BIN is set, every sub-query is routed through the bin_override helpers — there is no silent fallback to the default git binary. Without the override, queries go through context.