dsh-git-view
开发工具 活跃维护

dsh-git-view

shinchen6/dsh-git-view

在开发界面中直接查看工作区改动,支持编辑、暂存与提交操作,并可调用已配置模型自动生成规范的提交信息,简化版本管理流程。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
Apache-2.0
开源协议
968 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:shinchen6/dsh-git-view
git clone https://github.com/shinchen6/dsh-git-view.git
git clone git@github.com:shinchen6/dsh-git-view.git
README.md main

Git View

Review, stage, commit and push the session repository's git changes from the
Harness conversation view.

中文

Whole-file view

What it does

A Git tab in the conversation view ring, after Trajectory. It reads the
repository the session is working in — no path to configure, no second UI.

  • Every project in the workspace — the repositories around the working
    directory, each with its own branch, markers and commit. They are committed
    separately, never across repositories. Projects with nothing pending fold into
    one row so the ones you are actually working on stay on screen.
  • Change groups — conflicts, staged, unstaged and untracked, each with
    folder rows that fold a whole subtree and stage or discard it in one action.
  • Three ways to read a file — whole file with the changes marked, changes
    only as a unified diff, or side by side. Remembered across sessions.
  • Edit and save — open a working-tree file in the panel and write it back,
    guarded by the version the read returned.
  • Branches, stash, pull, sync — and a fetch, refresh and discard group.
  • Commit and push — an AI-written commit message from the staged diff, a
    commit button that commits, and a push button that lists every commit it would
    publish before it publishes them.

Changes only

Untracked directories stay folded until opened, and opening one asks git about
that directory alone. A working tree with twenty thousand untracked files costs
the same to list as one with twenty.

A repository nested inside another one is not offered as a folder in its
parent's file list, because git will not describe what is inside it to the
parent and opening one would show nothing. It is one of the projects instead.

Install

Requires dsh 0.2.0-rc.2 or newer, Node 22.19+ or 24+, and a session whose
working directory is a git repository.

It is in the plugin market. To install it by hand, either path works:

# prebuilt, no build-approval step
dsh plugin --profile <profile> add https://github.com/shinchen6/dsh-git-view/releases/latest/download/dsh-git-view.tgz

# or build from source
dsh plugin --profile <profile> add shinchen6/dsh-git-view

Then restart the profile and open the Git tab in a conversation.

Screenshots

The push button lists what it would publish first.

Push confirmation

The commit box enlarges from its top-right control.

Enlarged commit box

License

Apache-2.0