Skip to content

About

Read-only Git Graph sidebar for DeepSeek Harness Web: commit history, file diffs, two-commit comparison and full historical source. DSH 原生侧栏 Git 可视化插件。

Topics

Resources

Stars

10 stars

Watchers

0 watching

Forks

Repository files navigation

dsh-git-graph — Git Graph for DeepSeek Harness Web

Listed in Awesome DSH Plugin Latest GitHub Release Supported DSH versions Build and test status License

中文说明

dsh-git-graph

Current release: 1.0.1

Open Git Graph in the right sidebar of DeepSeek Harness (DSH) Web to follow a branch, read the patch behind a commit, or pick up a file review where you left off. Once you finish a review, you can merge the whole feature branch into your current branch or cherry-pick just the commits you need. You can work directly with the repository on the DSH Host without sending a chat message or entering a model API key.

Quick facts

Item Value
Plugin dsh-git-graph in the DSH sidebar · WhitePlusMS/dsh-git-graph
Install npm package @whiteplusms/dsh-git-graph or the prebuilt GitHub Release archive
Requires DSH >=0.2.2-rc.1 <0.3.0 · Node.js 24.9+ · dsh CLI · pnpm · Git on the DSH Host
Git access The sidebar can change the selected repository when you run a Git action. The model’s git_graph tool reads history, references and working-tree status.
Languages and license English and Chinese UI · MIT and third-party notices

Features · Install · Git operations · Keyboard controls · FAQ · Scope · Update or uninstall · Docs

From the DSH workspace to the time-labels commit and the changed return line in format.ts


Features

  • Explore a workspace. Switch between worktrees and submodules, distinguish repositories by path, and follow a branch to its tip. Choose a repository
  • Trace a change. Open a commit in the graph, inspect its parents and reachability, and read a patch alongside the complete historical file. Compare and review
  • Resume a review. Compare two commits or a commit with the working tree. Track reviewed files in a commit or two-commit comparison and reopen an unfinished review. File review workflow
  • Work with Git. Fetch, pull, push, merge, cherry-pick or revert from the sidebar. Save work in a stash, restore it later or archive a tagged revision. Git operations
  • Connect history to your workflow. Link issue numbers to your tracker, save branch filters and choose how the graph displays authors and dates. Settings and shortcuts

Install and open

You need DSH >=0.2.2-rc.1 <0.3.0, Node.js 24.9 or later, the dsh CLI, pnpm, and Git on the DSH Host. Install the scoped npm package in the Web profile, then start DSH:

dsh plugin --profile web add @whiteplusms/dsh-git-graph
dsh web

You can also install the prebuilt dsh-git-graph.tgz from GitHub Releases. Paste the download URL into the DSH plugin installer, or pass it to the CLI:

dsh plugin --profile web add https://github.com/WhitePlusMS/dsh-git-graph/releases/latest/download/dsh-git-graph.tgz

In DSH Web, Choose workspace, open the right sidebar, and select dsh-git-graph from its start page. The guide and tab use the short name. On npm, use the full name including @whiteplusms/.

Choose a repository

The repository name in the toolbar opens Switch repository. Choose the main repository, an initialized submodule, or another Git worktree inside the workspace. The graph, files and Git actions follow that selection. An uninitialized submodule stays disabled until you initialize it and refresh.

  • For a workspace that contains several repositories, set Scan depth and click Scan repositories. The scan stops when it reaches a worktree root. If the workspace is already inside a repository, add independent repositories nested within it by path.
  • If you know the location, enter its workspace-relative root in Repository path and click Add repository. In the example, the paths distinguish api/atlas from web/atlas. Removing an entry hides it from the picker and later scans. Add its path again to restore it, or use Restore main repository for the main entry.

Switch repository showing Scan depth 2, Scan repositories, api/atlas and web/atlas

Open Branches and click a branch to focus its history and locate its tip. Focus and locate leaves HEAD and the files on disk in place. To work on another local branch, right-click its label and choose Check out branch, or double-click its graph label. For a remote-tracking label, Check out tracking branch opens a dialog to create a tracking branch or explicitly use an existing local branch.

Compare and review

Read one change. Click a commit row or graph node to expand its details inline. Expand Commit reachability there to see its relationship to HEAD, branches, tags and stashes. Click a changed file to open its Diff. Switch between Side by side and Single column, or select Full source and the available Old version or New version to read or copy the file at that revision. For a rename, each version follows its own path.

Choose what to compare. Click Uncommitted changes above the history to inspect staged, unstaged and untracked files. To compare a past commit with what is on disk now, open its context menu and choose Compare with current working tree. For two commits, click the base, then Ctrl-click the target (Cmd-click on macOS). The range reads base → target. You can also right-click the target and choose Compare with selected commit, or use Compare commit… in its details to choose a base.

Review one file at a time. In the changed-files header of a commit or comparison, click the Start review icon. Pending filenames are bold. Opening a file or its diff marks it reviewed and returns its name to normal weight. Right-click a file for Mark as Reviewed or Mark as Not Reviewed. Close the comparison and reopen the same pair in the same direction to resume in this browser. Reversing the pair has its own progress. Opening the last pending file ends the review automatically. End review clears that review early.

Comparing two commits, starting a review, opening format.ts, then reopening the same range with format.ts in normal weight (reviewed) and clock.ts and example.txt still bold (pending)

After reopening, clock.ts and example.txt are still pending. The normal weight of format.ts marks it as reviewed.

Git operations

The following commands run when you choose them in the sidebar. The model-facing git_graph tool is read-only. It can inspect commit history, refs, HEAD and working-tree status.

To… Start here
Fetch remote updates Click Fetch from Remote(s) in the toolbar to fetch all configured remotes. Refresh rereads local Git state. For a single remote and its prune options, open Settings → Remote Configuration. A remote-tracking branch also offers Fetch into local branch… when a same-named local branch exists and is not checked out as the current branch.
Pull into the checked-out branch Right-click the remote-tracking branch and choose Pull into current branch…. Check the source and destination before confirming. The dialog offers a merge commit even when a fast-forward is possible, or a squash.
Push a local branch Right-click the local branch and choose Push Branch…. Confirm the remote or select the destinations when several are configured. The dialog shows the normal push mode and offers an upstream setting where applicable.
Merge a branch or commit Right-click the source branch label or commit and choose Merge into current branch…. In the example below, time-labels supplies the changes and the checked-out main receives them. No Commit lets you inspect a staged merge result. A fast-forward moves the branch immediately.

Merge confirmation naming time-labels as the source and main as the current branch

Cherry-pick or revert. Right-click a commit. Cherry Pick… applies its change to the current checkout. Revert… creates a new commit that undoes the change. For a merge commit, select the mainline parent to define which change Git should apply or undo. Cherry-pick also offers recording the source and staging the changes for a later commit.

If there is a conflict, resolve the files in the worktree, stage them with Git, then refresh the graph. An active merge offers Abort merge, and Continue merge once conflicts are staged. An active cherry-pick or revert offers Skip and Abort, with Continue available after resolution. These controls follow the operation Git reports. A conflict without an active operation marker must be handled in the worktree.

Stash. Right-click Uncommitted changes → Stash uncommitted changes…. Add a message if helpful and select Include Untracked to save new files too. Click the saved stash in the graph to expand its changed files beneath the row. Click a file to read its diff. Once you’ve checked the contents, right-click the stash and choose Apply Stash… to restore changes and keep the entry, or Pop Stash… to remove it after a successful restore. Reinstate Index also attempts to restore what was staged. A conflicted pop keeps the stash. The menu also offers Create Branch from Stash… and Drop Stash….

Tags. Right-click the commit and select Create Tag…. A lightweight tag names the revision and is always unsigned. An annotated tag also stores a message. The sidebar creates annotated tags unsigned by default. Set gitgraph.signTags=true to sign them with the repository’s Git signing identity. With signing off, the sidebar passes --no-sign, which takes precedence over tag.gpgSign=true. Creation defaults to local, with a separate confirmation for an existing name. If you select a remote, the plugin creates and verifies the local tag before pushing. A failed push leaves it available locally. Right-click a tag label for Push Tag… or Create Archive… to download that revision as ZIP or TAR. The same menu provides details for annotated tags, deletion and name copying.

Advanced options for the Tag dialog
Git configuration key Effect
gitgraph.dialogAddTagType Defaults to an annotated tag. Set it to lightweight to change the default.
gitgraph.dialogAddTagPushToRemote Preselects a push in the creation dialog. Off by default.
gitgraph.signTags Off by default. When enabled, the sidebar signs annotated tags with the repository’s Git signing identity. When disabled, it passes --no-sign even if tag.gpgSign=true. Lightweight tags are always unsigned.
remote.pushDefault Sets the preferred remote for a push from the creation dialog.

Settings and shortcuts

  • Issue links. Open Settings → Issue Linking → Add Issue Linking. For example, pair #([0-9]+) with https://github.com/OWNER/REPO/issues/$1, substituting your repository. Clicking #123 in a commit message opens issue 123. Right-click to copy its URL. Use Globally supplies a default that individual repositories can override.
  • History and display. Use the branch checkboxes for a combined history. Open Filter to save a named branch-glob preset. To change the commit order, right-click a column header in the graph and select an ordering. Settings cover paging, reflog history, columns, dates, and Dim commits outside the HEAD ancestry. Author initials are the default. Enable Fetch real author avatars for the selected repository to allow external avatar requests.
  • Other branch actions. The commit menu offers Create branch… at the selected revision and Checkout to enter detached HEAD. The local branch menu offers Rename branch…. Double-click a local branch label to return to that branch.
  • File menu. Right-click a path to copy it, view historical source, or compare it with the current working file. Open in system application is available when the Host supports opening that file.

Keyboard controls

With focus inside Git Graph:

Gesture Action
Ctrl/Cmd+F · Ctrl/Cmd+Shift+F Find a loaded commit · toggle settings
↑ / ↓ · H Move between commits · locate HEAD
Ctrl/Cmd-click a second commit Compare the selected base with the clicked target
Right-click or Shift+F10 · Esc Open the focused item’s menu · dismiss it
Double-click a branch label Check out a local branch, or open tracking checkout for a remote branch
Drag or double-click a column divider Resize the column or restore its default width

Scope

Find matches the commits already loaded. To reach older history, load more commits or locate a commit by its full hash. Full source reads text up to 1 MiB per file version. For a binary or oversized file, the viewer explains why it cannot show the text.

FAQ

Why does DSH report cannot resolve profile bundle after I moved a local installation?

Stop that Web profile and reinstall the scoped npm package or the Release archive in the same profile. Restart DSH Web so it loads the installed bundle. Installation commands

Can the model change my repository? Do I need an API key to use the graph?

The model’s git_graph tool is read-only. The sidebar works directly with Git, without a model API key or chat message. Choosing an action such as Check out branch or Push Branch… in the sidebar can change the local branch or the remote.

Where did my file review go?

Reopen the same repository and commit, or the same base → target comparison, in the browser where you started. Pending filenames are bold. Reviewing the last file or selecting End review clears that review’s progress.

Why don’t I see a teammate’s new commits after clicking Refresh?

Refresh rereads the local repository. Click Fetch from Remote(s) to retrieve new remote references. If you also want the changes on your checked-out branch, use Pull into current branch… on the remote-tracking branch.

Update or uninstall

Stop the running Web profile, rerun the same npm or Release install command to upgrade, then restart DSH Web. Check the installed version in the same profile:

dsh plugin --profile web list @whiteplusms/dsh-git-graph

To uninstall, stop that profile, remove the package, then restart DSH Web:

dsh plugin --profile web remove @whiteplusms/dsh-git-graph

Inspired by vscode-git-graph. The project’s own code uses the MIT license. The adapted portions and icons have separate notices. License and third-party notices

About

Read-only Git Graph sidebar for DeepSeek Harness Web: commit history, file diffs, two-commit comparison and full historical source. DSH 原生侧栏 Git 可视化插件。

Topics

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages