HydraGit Docs
v0.3.1

Commit diff

For any selected commit, the changed-file list plus per-file hunks — shown inline in the detail pane, or opened in a real diff editor tab.

Changed-file list diff

Entry points

  • Log paneClick a commit row → the detail pane lists its changed files as a tree.

What happens next

  1. Go runs diff with { commit } and returns []FileStat — the changed paths with add/delete/rename status.
  2. The detail pane renders them in a collapsible file tree.

Per-file hunks diff

  1. Clicking a file calls diff with { commit, file }, returning []Hunk.
  2. The hunks render as an inline diff with added (+) and removed () lines.

Preview vs persistent tab

  • Single-click a file → opens in a preview tab (italic title, reused for the next file).
  • Double-click, or use "Show Diff in a New Tab", → opens a persistent editor tab.