pub fn execute(
staged: bool,
stat: bool,
word_diff: bool,
ref1: Option<String>,
ref2: Option<String>,
) -> Result<DiffResponse, LitError>Expand description
Execute the diff command
Modes:
- No args: working tree vs index (unstaged changes)
- –staged: index vs HEAD (staged changes)
- Two refs: commit-to-commit or branch-to-branch