Skip to main content

query_git_state

Function query_git_state 

Source
pub fn query_git_state(cwd: &str) -> GitState
Expand description

Compute the working-tree state for cwd (branch, ahead/behind, dirty, diff totals). Returns is_repo:false when cwd is not a git repository.