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