Skip to content

Releases

v2.6.0: Blame before this change

Choose a tag to compare

@nandhu-44 nandhu-44 released this 04 Dec 18:25

Released 2026-12-04

New

  • Blame: before this change. The commit blame shows is often just a reformat or a rename. Each blame entry now has an arrow that opens the file as it was just before that commit, with the same line picked and blame still on, so you can keep stepping back through older versions of the code. It follows renames, and Back returns to where you were. Blame is also kept in the address (?blame=1), so links and Back keep it.
  • JavaScript API: blame() also returns orig (each line's number in its commit) and, for each commit, path, previous (the parent and the file's name there) and boundary.

Fixes

  • Line history: the file bar stays at the top while you scroll a file, so History of lines… is in reach after picking lines far down a long file.
  • Line history: picking a line no longer moves the code under the pointer when the button wraps the file bar onto a second row in a narrow panel (Safari; Chrome and Firefox already kept it still), so a shift-click lands on the line you meant.

Notes

  • A new demo for the README and the website: time travel across branches, then line history.

v2.5.1: Diff highlight fixes

Choose a tag to compare

@nandhu-44 nandhu-44 released this 04 Dec 07:17

Released 2026-12-04

Fixes

  • Word highlights in diffs no longer break emoji: when two emoji shared their first half, the highlight landed in the middle of a character and showed as two broken glyphs.
  • Accented and non-Latin words are highlighted whole in diffs, like other words (café → cafés used to mark only the s).

Notes

  • The diff parser and word diff moved to src/public/js/patch.js, which has no DOM, and have tests now (test/diff.test.js), as do more search query cases.

v2.5.0: Line history

Choose a tag to compare

@nandhu-44 nandhu-44 released this 04 Dec 06:28
e817825

Released 2026-12-04

New

  • Line history: in a commit's Files tab, click a line number (or click one and shift-click another for a range), then History of lines…. You get every commit that changed those lines, newest first, each with a diff of just those lines. It follows them back through renames and moves (it uses git log -L), and the oldest commit, at the bottom, is where they first appeared. View in file opens the file as a commit left it, with the same lines picked; j / k move between commits and Esc goes back to the file. The picked lines stay in the address, so links and Back keep them.
  • JavaScript API: lineHistory({ rev, path, start, end, skip, limit }).

VS Code

  • Open Line History in Git Time Machine: select some lines and pick it from the editor's right-click menu or the Command Palette, or click Line History in the inline blame hover. Uncommitted and unsaved edits are fine: the selection is first matched to the same lines in the last commit, so the history follows the lines you picked, and the page says when their numbers differ.

Fixes

  • Files and branches with a % in their name open from links and the address bar. Their names were decoded twice, which failed.

v2.4.1: Clickable tabs and links in VS Code

Choose a tag to compare

@nandhu-44 nandhu-44 released this 04 Dec 05:16
69892ba

Released 2026-12-04

Fixes

  • VS Code: clicking now works everywhere it does in the browser: the History, Compare, Reflog and Insights tabs, a commit's Changes and Files tabs, folders and breadcrumbs in Files, parent and other commit links, To HEAD and To working tree, the close button, the logo, and the Stashes and Uncommitted changes items in the sidebar. VS Code cancels clicks on links inside a webview, so until now these only worked through keyboard shortcuts like g h and g r.
  • VS Code: a clicked tab or link no longer gets a yellow outline. Keyboard focus still shows one, in your theme's focus colour.

v2.4.0: Git actions, stashes, staged changes and a native VS Code feel

Choose a tag to compare

@github-actions github-actions released this 03 Dec 17:53
9b0337e

Released 2026-12-03

New

  • Stashes are listed in the sidebar (and in VS Code's Git Time Machine view). Opening one shows its changes against the commit it was made on; git-tm never applies or drops them.
  • Staged and not staged: the uncommitted-changes row says "2 staged · 3 not staged", and opening it shows the two groups like git status, with untracked files under Not staged. Time travel to the working tree still shows everything together.
  • Git actions in edit mode: Check out a commit or a branch at it, Create branch, Create tag and Cherry-pick onto the branch you're on. Like the history edits, each is previewed, backed up and undoable from the toast or Edits by git-tm. Checkout is refused while tracked files have changes.
  • Commands on every commit (and Git commands… in the right-click menu): the same actions as git commands to copy, so read-only mode stays read-only. In VS Code a command can also be typed into a terminal for the repository; it only runs when you press Enter.
  • JavaScript API: INDEX for staged comparisons (files("HEAD", INDEX), files(INDEX, WORKTREE)), and info() now returns stashes, staged, unstaged and untracked.

VS Code

  • Open diff shows a changed file in VS Code's own diff editor (the working tree side is the real, editable file).
  • A Git Time Machine icon of its own in the Source Control title bar and the Activity Bar, instead of VS Code's history icon.
  • A redesigned sidebar: native buttons for History, Compare & Time Travel, Reflog, Insights and File History, plus Recent Commits and Stashes views. The Source Control panel gets a small collapsed launcher.
  • Live updates: the view refreshes as soon as VS Code's Git reports a change, with slower polling only as a fallback.
  • Tabs come back after VS Code restarts.
  • Roomier layout in narrower editors: the branch panel slides out from the menu button below 1300 px, and the commit pane uses tighter type.

Fixes

  • Branch and tag badges in Contained in and at the top of a commit wrap onto more lines instead of running off the edge.
  • A commit's branch and tag badges no longer go stale after branches or tags change (the commit was cached together with them).

Notes

  • Extension tests now run inside a real VS Code in CI, and extension.cjs is also tested against a stand-in for VS Code in npm test.

v2.3.0: Hide emails, file history fixes and VS Code theme

Choose a tag to compare

@github-actions github-actions released this 03 Dec 14:56
adf96e2

Released 2026-12-03

New

  • Hide emails: --no-emails on the command line, or the gitTm.showEmails setting in VS Code (on by default). Emails are replaced before they reach the page, so they don't show in History, commit details, Insights or blame. Emails written inside commit messages are still shown.
  • file: search shows one file's history and follows renames (path: doesn't follow them).

Fixes

  • History on a file in a commit's Changes tab now works. A second click handler was clearing the filter the button had just set.
  • History buttons close the open commit, so the filtered list is visible in narrow editors where the commit covered it.
  • VS Code:
    • Open File History reaches a panel that's still loading.
    • It finds the right file when the path goes through a symlink or the drive letter's case differs.
    • It works when a diff or the Git Time Machine tab has focus.
    • It follows renames.
  • VS Code look:
    • The panel uses VS Code's theme colours and fonts, without the extra side padding VS Code adds by default.
    • The file viewer's toolbar wraps instead of squeezing the line count.

v2.2.1: VS Code extension display name

Choose a tag to compare

@github-actions github-actions released this 03 Dec 06:58

Released 2026-12-02

  • Renamed the VS Code extension display name to Git TM (Git Time Machine).

v2.2.0: VS Code sidebar, inline blame & Open in Editor

Choose a tag to compare

@github-actions github-actions released this 02 Dec 19:28

Released 2026-12-02

New (VS Code extension)

  • Activity Bar view with quick links to History, Compare and Time Travel, Reflog, Insights, the active file's history and the edit-mode setting. The same links appear in the Source Control sidebar.
  • Status Bar button to open Git Time Machine (gitTm.showStatusBarItem, on by default).
  • Inline blame for the line under the cursor, with links to open the commit or the file's history (gitTm.inlineBlame, off by default). It blames what's in the editor, so unsaved changes show as uncommitted instead of pointing at the wrong commit.
  • Open in Editor from a commit's changes and from the file viewer.

Security

  • The inline blame hover escapes the author and subject, and can only run Git Time Machine's own two commands, so a crafted commit can't add links to other commands.
  • Open in Editor refuses paths and symlinks that lead outside the repository.

v2.1.1: VS Code Marketplace listing

Choose a tag to compare

@github-actions github-actions released this 02 Dec 17:34

Released 2026-12-02

  • Updated the VS Code extension display name to Git Time Machine — Git Graph & History and refined its Marketplace description and keywords.

v2.1.0: VS Code extension

Choose a tag to compare

@github-actions github-actions released this 02 Dec 17:27

Released 2026-12-02

New

  • VS Code extension: Git Time Machine in an editor tab, from the Source Control title bar, the Command Palette, or Open File History in Git Time Machine on any file. It answers the page directly inside VS Code, with no local server or port, so it works over Remote SSH, WSL and Codespaces. It follows VS Code's light or dark theme. It is read-only unless gitTm.enableEditMode is on in your user settings.
  • JavaScript API: createApiHandler(repo, options) runs the JSON API without HTTP, the same handler createServer() uses.
  • The terminal shows the repository's remotes at startup, with any credentials in their URLs left out.
  • Right-click menu in the Reflog view: open a commit, compare it with HEAD, copy its SHA or the command to recover a lost commit.
  • e opens the Edit dialog for the selected commit in edit mode.

Fixes

  • Recovery commands in the Reflog view use the full commit hash, so they can't match the wrong object in large repositories.
  • Keyboard shortcuts no longer act on the views behind an open Edit dialog.
  • Expand all switches to Collapse all once every file is open, and Compare refreshes after an edit.
  • No more "repository changed on disk" banner caused by git-tm's own edits when a background check overlapped them.

Notes

  • git-tm keeps backups for your last 200 edits per repository and removes older ones automatically.