
Trail: Git Graph, Blame & History
Who wrote this line, when, and why, without leaving the editor. Plus a commit graph, file and line history, branches, stashes, worktrees and an interactive rebase editor. Free and offline.
const b = 3; // tuned You, 4 months ago • Tune b (#7)
Blame
- Current line blame after the line:
You, 4 months ago • message (format is a setting).
- Hover the blame for the author, date, full message, co-authors, a link to the pull request (
#123), the diff of that line in that commit, and actions: open the commit in the graph, open its changes, previous revision, line history, copy SHA, open on GitHub / GitLab / Bitbucket / Azure DevOps / Gitea.
- Unsaved edits are blamed correctly: Trail blames the text in your editor, so lines stay matched while you type, and new lines say uncommitted.
- Honours
.git-blame-ignore-revs so mass-reformat commits don't hide the real author. Optional -w to ignore whitespace.
- Status bar blame for the current line; click for actions.
- File blame (editor title button): a gutter with commit, author and age for every block, plus an age heatmap on the edge of each line.
Commit graph
- Lanes for every branch, with branch, remote and tag labels and the current branch in Cell Mint.
- An Uncommitted changes row on top.
- Click a commit for its message, author, parents and changed files with
+/− counts; click a file to see its diff.
- Filter by branch; search by message, author, file path or code change (
git log -S), or filter the loaded commits instantly.
- Right-click (or
Enter) for actions: checkout, create branch or tag, merge, rebase, cherry-pick, revert, reset (soft / mixed / hard, always confirmed), interactive rebase, copy, open on remote.
- Loads more as you scroll; refreshes itself after commits, checkouts and fetches.
History
- File History in the Trail side bar follows the active editor, across renames. Click a commit to see what it changed in the file.
- Line History for the selection (
git log -L), from the editor's right-click menu or the blame hover.
- Visual File History: a timeline of the file's commits by author, dot size = lines changed.
- Open File at Revision…, Open Changes with Previous Revision, Compare Working Tree with Branch or Tag…
Repository
Branches (with ahead/behind and gone upstreams), remotes, tags, stashes (browse files, apply, pop, drop), worktrees (create, open in a new window, remove) and contributors.
Interactive rebase editor
git rebase -i opens a visual editor: drag to reorder, pick / reword / edit / squash / fixup / drop from a menu or with one key (p r e s f d), Alt+↑/↓ to move, then Start rebase or Abort. To use it for rebases you start in a terminal, set git config --global sequence.editor "code --wait".
Links
Copy Remote Permalink and Open File on Remote link to the exact commit and selected lines.
Settings
| Setting |
Default |
|
hexhad.trail.currentLine.enabled |
true |
Blame after the current line |
hexhad.trail.currentLine.format |
${author}, ${ago} • ${message} |
Tokens: ${author} ${ago} ${date} ${message} ${sha} ${email} |
hexhad.trail.statusBar.enabled |
true |
Blame in the status bar |
hexhad.trail.hovers.mode |
annotation |
annotation (hover the blame text), line (anywhere on a line), off |
hexhad.trail.hovers.showDiff |
true |
Show the line's diff in the hover |
hexhad.trail.blame.ignoreWhitespace |
false |
git blame -w |
hexhad.trail.blame.useIgnoreRevsFile |
true |
Use .git-blame-ignore-revs |
hexhad.trail.fileBlame.heatmap |
true |
Age heatmap with file blame |
hexhad.trail.editorTitle.blameButton / compareButton |
true / false |
Editor title buttons |
Trail uses the git on your PATH, or the one set in git.path.
Privacy
Works offline. No telemetry, no avatars fetched from the internet (initials instead). Links to your Git host open only when you click them.
MIT © 2026 HEXHAD. Third-party notices: THIRD_PARTY_NOTICES.md.
| |