PenguinAndy/dsh-ezcommit-plugin1

dsh-ezcommit-plugin

DSH「一键 Commit」动态插件:由当前会话模型按业务颗粒度拆分 git 改动并分批提交

包名
dsh-ezcommit-plugin
版本
0.0.2
许可证
MIT
最近更新
2026年8月22日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PenguinAndy/dsh-ezcommit-plugin

使用流程

  1. 点击「一键 Commit」→ 确认框展示分支与改动计数(二次确认)。
  2. 「开始分析」→ Host 采集 status / diff / 未跟踪采样(敏感路径自动过滤,不采样、不进入提示词),调用当前会话已路由的模型裁决:
    • noise → 黄色提示框展示原因,不执行任何 git 写操作;
    • commit → 计划审查框展示拆分批次(顺序、message、文件清单)、被过滤的敏感文件与未覆盖文件告警。
  3. 「执行 N 批提交」→ 逐批 git add --pathspec-from-file=- --(文件清单经 stdin,天然规避空格/特殊字符路径)+ git commit -m title [-m body],返回每批短 hash。
  4. 完成后按钮立即刷新置灰;任一批失败即停止(不回滚),已成功批次照常报告。