Skip to main content

diff_index

Function diff_index 

Source
pub fn diff_index(index: &WorkspaceIndex, workspace: &Path) -> Result<TreeDiff>
Expand description

Computes the diff between the index and the working tree.

§Arguments

  • index - The workspace index (staged files)
  • workspace - Path to the workspace directory

§Returns

A TreeDiff showing unstaged changes (working tree vs index).