Skip to main content

has_uncommitted_changes

Function has_uncommitted_changes 

Source
pub fn has_uncommitted_changes(worktree_path: &Path) -> Result<bool>
Expand description

Checks if a worktree has uncommitted changes.

§Arguments

  • worktree_path - Path to the worktree

§Returns

Ok(true) if there are uncommitted changes (staged or unstaged), Ok(false) if clean.