dsh-auto-git
在 DSH 每次注册新工作区时自动 git init 并补一个空提交;已在工作树内的目录会被跳过。
Runs git init in each newly registered DSH workspace, with an empty initial commit by default, so git-aware plugins have a repository to attach to; directories already inside a work tree are skipped.
怎么安装
dsh plugin add github:zhitiaojun/dsh-auto-git 简介
dsh-auto-git 为**每个新注册的 DSH 工作区**自动 git init,让 git 相关插件(如 @linxin666/dsh-client-ui-git-graph 的分支胶囊 / Git 图谱)在每个工作区都能出现。 为什么需要它 git-graph 插件的 host 侧 /git/* 路由有两道门(见其 src/index.ts 的 createWorkspaceGate 与 src/host/git-service.ts): 1. 请求路径的 realpath 必须**恰好等于**某个已注册工作区路径(workspace.path === canonical,不接受子目录、不接受任意目录); 2. 该路径必须是 git 仓库(git rev-parse --show-toplevel 成功),否则 status 返回 null。 前端 BranchChip 在 repo === null 时直接 return null —— 于是"非 git 工作区"里这个插件完全没有 UI。所以想让 git 功能"每个工作区都有",唯一办法是让工作区目录本身是仓库。 它做什么 **注册时**:监听 domain/changed(domain === 'workspace' && table === 'workspaces' && operation === 'put'),…
推荐参考
信息
- 协议
- MIT
- 语言
- JavaScript
- GitHub 星标
- 0
- 月下载
- –
- 最近更新
- 2026-09-15
- 创建于
- 2026-09-14
基础安全检查
- 检查结果
- curated 收录但无 npm 包/安装命令
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- dsh, dsh-plugin, git, workspace
同类推荐
dsh-web
zhu1090093659/dsh-web-ui/tree/main/packages/dsh-git-graph
输入框上方提供 Git 分支选择器,并把分支泳道与提交历史画成图谱,沿着时间线找到任意变更。
dsh-web
zhu1090093659/dsh-web/tree/main/packages/dsh-git-graph
输入框上方提供 Git 分支选择器,并把分支泳道与提交历史画成图谱,沿着时间线找到任意变更。
DSH_VsCodeMode
Lenonss/DSH_VsCodeMode
为 DeepSeek Harness 提供类 VSCode 编码体验:基于 Monaco 的中央文件编辑器(文件页签、Ctrl+P 快速打开、状态栏),并对 Agent 的 edit/write 结果进行交互式差异审查(逐处采纳/拒绝、回滚、归档),状态跨重启持久化。
dsh-github
PerryLink/dsh-github
官方级 GitHub CI 集成:composite action.yml、轮询 PR 评审机器人(幂等行内评论 + status-check 门禁)以及 PR/issue 工具,所有写入走人工审批门。