⬡Compare
Beyond a single commit's diff, HydraGit compares two refs, a ref against your working tree, or one file at a revision against your local copy.
Branch / ref compare diff.range
Diffs two refs — backs the branch "Compare with <branch>" action.
Entry points
- Branch context menuCompare with '<current>'.
What happens next
- Go runs diff.range for the two refs.
- The multi-file result renders in the detail pane's compare view; click any file for its hunks.
Ref vs working tree diff.ref
Diffs a ref against your current working tree — backs "Show Diff with Working Tree" (branches & tags) and "Compare with Local" (commits).
Entry points
- Branch / tag menuShow Diff with Working Tree.
- Commit menuCompare with Local (starts a ref compare for the commit ↔ working tree).
- Go runs diff.ref; results render in the compare view, titled
<ref> ↔ working tree.
File vs local openWorkingDiff
"Compare with Local" / "Compare Before with Local" open a file@revision ↔ working-tree diff editor.
- The host helper
openWorkingDiffbuilds agit:URI for the file at the chosen revision (left) and the on-disk file (right). - It opens VS Code's native
vscode.diffeditor for that single file.