Skip to main content

unpushed_commit_count

Function unpushed_commit_count 

Source
fn unpushed_commit_count(path: &Path) -> Option<u64>
Expand description

Commits HEAD reaches that no remote-tracking ref does, with a branch whose remote branch was deleted counted as pushed. None when the repo holds no remote-tracking refs to compare against, or when the query fails - both leave the verdict clean.

A failed query does not block, unlike a failed status: commits live on the branch, which the despawn’s own reap keeps when it holds unique commits, while uncommitted work would go with the tree.