pub fn diff_against_head(cached: bool) -> Result<String>Expand description
A unified-0 diff against HEAD: just the staged changes when cached,
otherwise all tracked changes (staged and unstaged). Zero context lines
so each hunk’s pre-image range pinpoints exactly the lines it touches.