HydraGit Docs
v0.3.1

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

  1. Go runs diff.range for the two refs.
  2. 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).
  1. 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.

  1. The host helper openWorkingDiff builds a git: URI for the file at the chosen revision (left) and the on-disk file (right).
  2. It opens VS Code's native vscode.diff editor for that single file.