Skip to main content

is_ahead_of_upstream

Function is_ahead_of_upstream 

Source
pub fn is_ahead_of_upstream(repo_root: &Path) -> Result<bool, GitError>
Expand description

Check if HEAD is ahead of the configured upstream.

Returns true if there are local commits that haven’t been pushed.