Repository navigation
v0.4.10
Added
- Branches submenu — scope the commit list to specific branches (multi-select) or
all branches, instead of just the checked-out branch, via a "Branches" item on the
commit list's right-click menu. - View Line History — a new "Show Line History" command (editor right-click menu and
Command Palette) shows the history of just the currently selected line(s). - View File Contents — a new action in the changed-files context menu opens a file's
content at a given revision in a read-only tab, instead of only ever showing it as one
side of a diff. - Folder View — a toggle in the changed-files context menu groups the list by
directory instead of a flat list. - "Show Git Log" now also appears as an icon button in the editor tab bar and the Source
Control panel title, in addition to the existing right-click menu and keyboard shortcut. - New
gitLogViewer.pageSizesetting to configure how many commits load per batch
(default 100).
Fixed
- Fixed a flaky test (
formatTimeAgo's 59-second boundary case) that compared against
real wall-clock time captured at a different moment than the function's own internal
clock read, occasionally flipping the result across a minute boundary. Frozen fake
timers now guarantee both reads see the same instant. - Fixed an intermittent
error: Could not read <sha>/could not parse commit <sha>
failure in the test suite's git fixture builder, seen only on GitHub-hosted CI runners.
Root cause: git'sgc --autocan trigger in a detached background process once a repo
accumulates enough loose objects (this fixture creates 300+ commits across several
branches), and a later git command in the same build can lose the race against that
background repack. Disabledgc.autofor these throwaway, immediately-deleted repos.
Changed
- Updated dependencies:
vitestto 4.1.10,@vitest/coverage-v8to 4.1.11,esbuildto
0.28.2,@types/nodeto 26.1.2,c8to 12.0.0, and theactions/checkout,
actions/setup-node,actions/upload-artifact,actions/download-artifact, and
softprops/action-gh-releaseGitHub Actions to their latest majors. vitest.config.ts→vitest.config.mts, and dropped__dirnamein favor of
import.meta.dirname, ahead of a future Vite major version that removes the
CommonJS-config-loading fallback these relied on.
Full Changelog: https://github.com/andiapps-dev/vscode-git-log-viewer/commits/v0.4.10