Gitpane for VS Code
Gitpane for VS Code brings the terminal layout to the Explorer. See repositories
at the top, changes in the middle and the commit graph below. Select a repository
or worktree to update both lower sections. Select a changed file to open its
native diff in the editor.

Rendered preview with sample repositories and simulated Explorer section headers.
Resize the three sections by dragging their dividers, or focus a divider and
use the up and down arrow keys.
Gitpane remembers the selected repository for this workspace. Each selection
shows its staged, unstaged, untracked and conflicted groups in Changes and
its history in Git Graph, including when there are no changed files.
Install Gitpane for VS Code
from the VS Code Marketplace, or run:
code --install-extension affromero.gitpane-vscode
Moving from Gitpane Explorer
Uninstall Gitpane Explorer (gitpane.gitpane-explorer) before installing
affromero.gitpane-vscode. Both extensions contribute the same Gitpane view and
commands, so keep only one enabled. Auto-update does not switch publishers.
Your gitpane.* settings and Gitpane TOML still apply. The new extension has
separate workspace storage. Re-add manually added repositories using
Gitpane: Add Workspace Repository… and restore hidden repositories,
submodule pins and remembered view choices from the Gitpane menus.
Gitpane reads changes from Git, including untracked files that VS Code's Git
settings hide. Large change lists are shown one page at a time. When the list
is not fully loaded, the repository's change count is a lower bound. Symlink
diffs show the link target text stored by Git. A repository with more than
200,000 change records shows an error instead of an incomplete list. Expanded
repositories and worktrees share a 64 MiB cache for retained snapshots and
their metadata. Git status scans also use temporary memory. If the cache is
full, select another repository or collapse an inline file list and retry. A
single snapshot larger than 64 MiB cannot be loaded.
Git sides of diffs read from the selected repository, including when another
repository overlaps the file path. They update as its Git state changes.
Gitpane checks index entries before and after reading; a change reversed during
the read may go undetected. Gitpane keeps up to 256 virtual diff documents open
at once, shared with symlink and submodule comparisons. Close a diff to make
room for another one. Repositories with a configured text converter or Git
replacement objects may refresh open Git sides during periodic status polling,
even when their original blob has not changed.
The view includes detected repositories inside the open workspace folders,
including multi-root workspaces. Linked worktrees inside the workspace appear
under their repository, with their own changed files and actions. A worktree
added as a workspace folder appears at the top level. Repositories outside the
workspace are not included.
Initialized submodules inside the workspace are opened automatically and shown
under their immediate repository or worktree. Set gitpane.submodules.autoDiscover
to false to stop automatic discovery. Repositories already open in VS Code stay
available.
Registered worktrees outside the workspace appear beneath the repository by
default. Set gitpane.worktrees.showOutsideWorkspace to false to hide them.
Choose Inspect Changes to review one in the current window, or Open in
New Window to inspect it separately. Inspection requires a trusted workspace
and leaves its folders unchanged.
External working-file diffs are read-only. External submodule and symlink diffs
are not supported. On Windows, staged diffs are available, but working-file
diffs are not yet supported.
Worktree rows are shown by default, following Gitpane's [ui] expand_worktrees
setting. Use the worktree count or press w on a repository to show or hide
its worktrees without opening the repository's file list. Gitpane remembers that
choice for the workspace. Restart the extension host after editing the setting.
The view updates as workspace folders and detected repositories change. While
visible, it also refreshes local Git status periodically. The $ indicator
opens a repository's stash list. Stash entries are view-only.
Focus Changes and press / or the search button to search all of the selected
repository's changed paths. Use the arrow keys to move between matches, Enter to
open a file diff, and Escape to clear the search.
An untracked embedded Git repository appears as an informational directory;
open or add that repository in VS Code to inspect its files.
The Explorer title menu offers repository sorting; the default keeps the
existing dirty-first, full-path order.
Gitpane relies on VS Code's Git extension to detect repositories. Its Git
auto-detection, scan depth and ignored-repository settings affect which nested
repositories appear. Gitpane opens detected linked worktrees inside the
workspace through VS Code's Git API, which also adds them to Source Control
and can reopen a worktree closed there.
The sidebar graph follows repository and worktree selection. Select the ●
beside a repository to open a larger graph in an editor tab. Each graph keeps
its own filters. Search highlights
matches among the loaded commits, with next and previous navigation. The graph
shows up to 200 commits and offers first-parent, branch, author and ref filters,
and branch collapse. Author choices come from commits loaded so far. Select a
commit and then a file to open its diff; the file list is searchable too.
Use Commit actions or right-click a commit to copy its hash or subject.
With the graph focused, y copies the short hash and subject. On a commit
file, y copies its path.
Choose Compare Revisions… from a repository or worktree menu to compare two
commits in a separate graph tab. Set From and To from a commit or branch menu,
enter a ref or hash, browse branches and tags, or select one commit and
Ctrl/Cmd-click another. Choose
endpoint or common-ancestor comparison, swap endpoints, and search the file list.
Uncommitted changes are excluded. Ref selections stay pinned until Refresh
refs; moved refs are marked. Comparisons support up to 100,000 changed files.
File and submodule type changes show the committed file and submodule pointer.
The graph uses Gitpane's [graph] settings for branch visibility, label length
and diff statistics. Restart the VS Code extension host after changing them.
The sidebar and graph use Gitpane's configured theme and adapt its colors for
the VS Code background. Use Gitpane: Choose Theme… to preview and save a
theme for Gitpane. Restart the extension host after editing theme files directly.
Right-click a changed file or use its ⋯ menu to open its actions. For files
inside the workspace, these include stage, unstage, discard and delete. Outside
worktrees offer read-only actions to open changes or copy the path. Repository
actions include branch review, push, pull, pull with
rebase and worktree creation. Linked worktrees inside the workspace can be
removed from their menu.
Choose Refresh from a repository or worktree menu to update its local status
and any open change pages. This does not fetch from remotes.
An explicitly added linked worktree can also be removed from its repository
menu when it is the only repository in the workspace. If its folder is a
workspace root, the folder is removed from disk and remains listed in the
workspace until you remove it from the workspace configuration.
Gitpane refuses to remove a worktree containing another workspace folder.
Worktree creation suggests Gitpane's configured [worktree] dir, or a sibling
of the repository when unset. If that location is outside the workspace or
unavailable, choose an existing parent directory inside the workspace instead.
Restart the VS Code extension host after changing the worktree configuration.
The repository menu also opens GitHub issues and pull requests for a
github.com remote. Filter by open, closed or all, inspect descriptions,
comments and available pull request diffs, or open an item on GitHub. Each
list contains up to 50 issues and 50 pull requests. This feature requires the
GitHub CLI (gh) on the workspace host, with network access and authentication
for the repository. GitHub Enterprise hosts are not supported.
Select a changed submodule to inspect its commit graph, committed pointer
changes and current file changes. The submodule must be initialized and inside
the workspace. Staged submodule renames, type changes and conflicts open a
pointer comparison; staged deletions also open a pointer comparison. Use
Inspect Submodule from a change menu to open an available checkout.
Branch review opens committed submodule pointer comparisons even when the child
checkout is unavailable.
If a deleted submodule leaves a corrupt checkout behind, Gitpane reports the
repository status as unavailable until that checkout is repaired or removed.
If a tracked submodule is replaced by a symlink, the parent repository's status
and change navigation remain available, including for dangling links or targets
outside the workspace. Gitpane reads the replacement entry and refuses to open
an unavailable or outside checkout. Repository mutations retain stricter
validation and require repairing or removing such a link first.
Blob and symlink sides in staged and conflicted pointer comparisons must be
UTF-8 text under 1 MiB.
On Unix, an unstaged submodule deletion or replacement of a submodule with a
regular text file opens an index-to-working comparison. The replacement side is
a read-only snapshot; reopen the diff after changing the file. Other working
submodule renames and type changes cannot be compared yet. Working changes
in nested submodules can be inspected, and staged or conflicted nested gitlinks
open pointer comparisons. Historical nested gitlink additions, deletions and
pointer changes also open comparisons without requiring the nested checkout.
Historical nested type changes involving files or symlinks open as read-only
comparisons. Type changes involving directories cannot be compared
yet. On Windows, a regular file replacing a submodule makes that repository's
status unavailable until the path is restored or removed. The parent repository's
file actions cannot stage, unstage, discard or
delete a submodule entry. Gitpane's push and pull actions do not recurse into
submodules. On Unix, the repository menu can sync direct submodules, update
submodules recursively, or pull the latest changes in direct submodules. It
reports skipped modules and partial failures. Each repository is checked
against the workspace before Git acts on it. Pull with Submodules first pulls
the parent, then updates the submodules that were already initialized; it
reports partial completion if a later step fails.
The repository menu can open an integrated terminal or find and open tmux or
herdr sessions belonging to the repository on the workspace host. tmux
navigation uses Gitpane's [goto] configuration. Session navigation and
submodule actions are not yet supported on Windows. Remote workspace hosts may
not be able to focus a local terminal window.
Use Gitpane: Fetch Workspace or the cloud download button to fetch the
current workspace repositories. Each linked worktree is fetched separately so
its own branch and remote configuration apply. Repositories sharing a Git
common directory are fetched in sequence. Gitpane reports failures for each
repository and refreshes the status and visible graph afterward. Fetch
Workspace is unavailable on Windows.
The extension does not use Gitpane's [watch] poll_fetch_secs or automatically
fetch remotes. VS Code's Git auto-fetch setting can fetch them independently.
Use Pin Submodule… from a repository or worktree menu to pin a direct
submodule, including one without changes. The list comes from VS Code and can
be refreshed; you can also enter a registered relative path. To pin a clean
nested submodule, first open its parent repository in VS Code. You can also use
Pin Submodule on a submodule change, or choose Pin Submodule in Gitpane
while inspecting nested submodules.
Pinned submodules are restored when their root repository is open in the same
workspace and their registered paths and repository identities still match.
Use Unpin Submodule from its repository menu to remove the pin. Gitpane
never closes or hides a repository discovered by VS Code when unpinning. The
repository can remain visible after its pin marker is removed.
Use Hide from Gitpane in a repository or worktree menu to remove its row
from the overview. Gitpane: Restore Hidden Repositories restores it.
This preference belongs to the current workspace and leaves VS Code's Git
repositories and workspace folders unchanged. Newly detected repositories
remain visible. Hiding a pinned submodule does not remove its pin.
If VS Code has not discovered a repository inside an open workspace folder,
use Gitpane: Add Workspace Repository… and choose its root folder. Gitpane
restores explicitly added repositories while their paths and identities still
match. Stop Restoring Repository or Gitpane: Manage Workspace
Repositories removes that preference without closing the repository in VS
Code. If an open request is still running, wait for it to finish before
removing the saved addition. VS Code cannot cancel an open already in progress.
Use Gitpane: Manage Submodule Pins to remove a saved pin that can no longer
be restored.
If VS Code is already opening a pinned repository, wait for that open to finish
before removing its pin. VS Code does not provide a way to cancel an open in
progress. If the workspace changes during that call, the repository may still
open, but Gitpane rejects the stale pin and does not close the repository.
The ◉ marker shows a live session for a repository or worktree. Set
gitpane.sessionBackend to tmux, legacy herdr, or official herdr-app when
VS Code does not inherit the multiplexer environment. The default, auto, uses
the detected host. Gitpane's ui.show_liveness setting also controls the marker.
Configured Launchers offers Gitpane's [open], [review], and custom
keybinding commands. Review commands receive {base} from [review] base or
the repository's detected default branch. A missing base reports an error.
Command and inline placements open integrated terminals. On Unix, tmux, legacy
herdr, and official Herdr desktop placements can open a split or tab/window on
the workspace host. Set gitpane.sessionBackend to select a backend, or choose
one when it is set to auto. Install and start the selected client on that host.
For ask, tmux offers available panes and sessions; herdr offers splits and a
new tab in the inherited pane's workspace. A configured tmux placement needs a
separate -t <target> or the TMUX and TMUX_PANE environment inherited by
VS Code. Legacy Herdr requires HERDR_SOCKET_PATH and either a configured
-t <target> or HERDR_PANE_ID. Official Herdr desktop requires herdr-app
and hc on PATH, and a displayed local HC_TERMINAL_ID inherited by VS Code.
Its picker offers a new tab in the source space or right/below splits beside
its displayed panes. Explicit pane targets and launcher tokens preserve the
source and destination identities even when another tab is focused. Session
navigation focuses the chosen desktop terminal; hidden and remote terminals
are excluded.
Multiplexer launchers are unavailable on Windows. Unsupported placements and
direct command placements using interpreter executables report an error.
With focus in Gitpane, use j/k to move and h/l to collapse or expand.
w toggles worktrees and S toggles stashes. g opens the commit graph,
p pulls, P pushes, and G opens sessions for the selected repository or
worktree. y copies its path or the selected file's path. o runs [open].
v runs a configured [review] command, or opens the native branch review
when no command is configured. r refreshes, t selects a theme, s opens
the sort picker, and a adds a workspace repository. d hides a repository
or confirms worktree removal. File clicks continue to open VS Code diffs.
Single-character [[keybindings]] entries run directly from the view.
Built-in global keys take precedence. Custom bindings can replace local
keys such as w and j; the first matching binding wins. VS Code keeps
modified shortcuts. Search inputs keep their normal typing behavior.
Reload the window after changing Gitpane's TOML configuration.
Discard and delete require confirmation and check the selected file for changes
before running Git. Files larger than 64 MiB, directories and special files
cannot be discarded or deleted through these actions. Another process can still
change a file between the check and the Git operation. On Windows, an ancestor
path can also change during the check; Windows behavior has not yet been
verified locally.
Preview saved stashes
Each repository row shows its stashes as $N. Use the stash button or press
S to expand the Stashes group, then expand a stash to load the files it
saved. Expanding requests the files on demand; nothing is read until you open
one.
Selecting a saved file opens VS Code's native diff. Both sides come from the
stash's immutable saved objects, so later edits to the working tree, index or
HEAD never change the preview:
- Tracked changes compare the stash's first parent with the stash tree, with
staged and unstaged changes merged into one list.
- Files saved by
git stash push --include-untracked or --all appear from the
stash's third parent as additions, including saved ignored files.
- Added, modified, deleted and renamed files are labelled with their status;
renames show both saved paths. Saved submodule pointers show the recorded
Subproject commit <oid> text.
- Binary files show a message instead of a text diff.
Stash nodes use an opaque identity built from the repository and the full stash
OID, so refreshing never resolves stash@{0} to a different saved snapshot after
a new stash is pushed or an existing one is dropped. Empty stashes, missing
objects and failed reads show a visible status in the tree; the virtual
documents are read-only. Gitpane never runs stash apply, pop or drop from
this view.
Package and install
The VSIX bundles the Gitpane backend. The Marketplace provides packages for
macOS, Linux and Windows. Published
GitHub release packages through
v0.18.2 install the old gitpane.gitpane-explorer identity. Those assets remain
unchanged. Use GitHub release v0.18.3 or newer, the Marketplace, or build from
this checkout for affromero.gitpane-vscode.
Choose darwin-arm64 for Apple Silicon macOS, darwin-x64 for Intel macOS,
linux-arm64 or linux-x64 for Linux, and win32-x64 for Windows. For SSH,
WSL or a development container, choose the package for that workspace host.
Linux packages require glibc. CI builds all five packages and checks their
contents and extracted backends before release assets can be uploaded.
Future tagged releases publish their packages to the VS Code Marketplace using
GitHub Trusted Publishing. The extension version must match the Gitpane release
version in both Cargo files. All checks and package verification must pass before
publication starts. Platform packages publish in sequence. If publication fails,
inspect the publisher before retrying because earlier targets may already be
public. The release workflow does not skip existing versions. GitHub Release
creation and crates.io publication wait for Marketplace publication to succeed.
The one-time publisher migration published version 0.18.2 under the new
identity. It did not create a GitHub release, change tags or publish to crates.io.
To build from this checkout instead, run the packaging script on the matching
OS and architecture. For Apple Silicon macOS:
node vscode-extension/scripts/package-vsix.js --target darwin-arm64 --out "$HOME/Downloads/gitpane-explorer.vsix"
code --install-extension "$HOME/Downloads/gitpane-explorer.vsix"
The extension requires VS Code 1.111 or newer. The packaging script requires
Node.js 22 or newer, npm, Rust and network access to run the pinned VS Code
packaging tool. It does not overwrite an existing output file. Supported
targets are darwin-arm64, darwin-x64, linux-arm64,
linux-x64 and win32-x64. Build on the target OS and architecture. Linux
packages require glibc, and the corresponding Rust target must be installed.
The extension starts its bundled gitpane serve backend. Set
gitpane.backendPath to an absolute path on the workspace host to use a
different compatible Gitpane build. The extension reports errors from that
executable; it does not switch to another backend.
Settings
Run Gitpane: Open Settings or use the cog in the Gitpane view. You can
also search Settings for @ext:affromero.gitpane-vscode.
| Setting |
Default |
Behavior |
gitpane.fontSize |
0 |
Text size in pixels across Gitpane's three panes. 0 follows the editor font size; choose 8 to 40 for a fixed size. |
gitpane.statusAlignment |
left |
Align repository and worktree status indicators and actions to the left or right of the Status column. |
gitpane.sortOrder |
remember |
Remember the toolbar sort per workspace. Explicit choices are workspace (changed repositories first, then path), alphabetical, reverse and dirty. |
gitpane.worktrees.defaultVisibility |
native |
Inherit ui.expand_worktrees, or use expanded or collapsed. Saved per-repository choices still take precedence. |
gitpane.worktrees.showOutsideWorkspace |
true |
Show registered outside worktrees and inspect their changes in the current window. |
gitpane.submodules.autoDiscover |
true |
Open initialized submodules inside the workspace automatically. Turning this off leaves already open repositories available. |
gitpane.refreshInterval |
5 |
Poll visible repository status, expanded file lists and graphs every 1 to 300 seconds. This does not fetch remotes or change session polling. |
gitpane.showSessionLiveness |
true |
Monitor live sessions while the Explorer view is visible. Disabling it clears session indicators and stops probes. |
gitpane.graph.firstParent |
false |
Start new graphs in first-parent mode. The graph toggle controls the graph already open. |
gitpane.graph.labelMaxLength |
-1 |
Inherit the native graph label length. Values from 0 to 120 override it; 0 displays only an ellipsis. Hover still shows the full label. |
gitpane.sessionBackend |
auto |
Detect the multiplexer, or select tmux or herdr. Excluded from Settings Sync. |
gitpane.backendPath |
empty |
Use the bundled backend, or a compatible executable on the workspace host. Set this in User or Remote settings. |
All view preferences support User and Workspace settings and apply without
reloading the extension. The first-parent default affects the next graph
opened. In remember mode, the sort toolbar saves only the workspace's last
choice. With an explicit sort setting, the toolbar writes a Workspace override
when a workspace is open, or a User setting otherwise.
Theme selection remains under Gitpane: Choose Theme, including custom
themes and previews. Native configuration supplies the inherited worktree and
graph defaults. These controls do not change which repositories the workspace
authorizes.
Development host
Build Gitpane from this checkout, then start a development host from
vscode-extension:
cargo build --locked --manifest-path ../Cargo.toml
code --new-window --extensionDevelopmentPath="$(pwd)"
In the development host, set gitpane.backendPath to the absolute path of the
built target/debug/gitpane executable. Open a folder or workspace, then expand
Gitpane in the Explorer. On Windows, the
executable is target/debug/gitpane.exe.
For SSH, WSL or a development container, install a
VSIX built for that workspace host. Virtual and untrusted workspaces are not
supported. Git and VS Code's built-in Git extension must be available on the
workspace host. VS Code's Git settings may enable automatic fetching.
Run the JavaScript tests with npm test in this directory. The extension has
no npm dependencies. To check the view in headless Chrome, run
node test/integration/browser.js, node test/integration/graph-browser.js
and node test/integration/stacked-browser.js.
The optional VS Code host test at
node test/integration/run.js opens a separate VS Code window.