ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 nvsravank

multirepo-diff-mod

在一个面板中显示文件夹内**每个 git 仓库**变更的 Claude Code 模组。

已翻译

关于这个 mod

这是一个提供 /multi-diff 命令的 Claude Code 插件,会扫描当前会话文件夹以及包含 .git 目录的子文件夹,并在一个面板中显示所有仓库的 git 变更。用户可以选择仓库和 worktree,然后选择比较模式:未提交对 HEAD、未暂存对已暂存、已暂存对 HEAD、分支对基准分支(PR),或当前 Claude 会话编辑的文件对编辑前内容。变更文件会以树状结构显示在所选文件的 diff 旁,并可重新扫描以及切换浅色/深色 diff。除非选择“Show detached”,否则会隐藏 Detached worktree。Desktop 应用会分页显示较长的 diff 和文件列表。使用 claude --plugin-dir /path/to/multirepo-diff-mod 本地安装,或将文件夹加入 ~/.claude/settings.json 的 CLAUDE_CODE_PLUGIN_DIRS;编辑后会热加载。采用 MIT 许可证。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add nvsravank/multirepo-diff-mod
claude plugin install multirepo-diff-mod
原文 / README

multirepo-diff-mod

A Claude Code mod that shows the changes in every git repo in a folder in one pane.

  • /multi-diff scans the session's folder. The folder itself is included when it is a repo, along with every child folder that has a .git.
  • /multi-diff <path> scans another folder.
  • Pick a repo, then a worktree of it. Detached worktrees are hidden until you choose Show detached.
  • Pick what to compare:
    • Uncommitted vs HEAD: staged and unstaged changes
    • Unstaged vs staged
    • Staged vs HEAD
    • Branch vs base (PR): the branch's commits since it left origin/main (or the repo's default branch)
    • This Claude session: files Claude edited in this session, against their content before its first edit
  • Changed files show as a tree on the left (☰ hides it), and the selected file's diff is on the right. ⟳ rescans, and ☀/☾ switches the diff's colors.

In the Desktop app, long diffs and file lists are shown a page at a time (Previous/Next), because very large panes stop responding there.

Install (local)

claude --plugin-dir /path/to/multirepo-diff-mod

Or add the folder to CLAUDE_CODE_PLUGIN_DIRS in the env block of ~/.claude/settings.json. Sessions started by the desktop app will then load it, and it hot-reloads when you edit it.

Feedback

Bug reports and feature requests are welcome as issues. This project doesn't accept pull requests; see CONTRIBUTING.md. Report security problems privately, as described in SECURITY.md.

Develop

claude plugin validate .
claude plugin test .

The Claude Code function-hooks API is in early access and may change between releases.

License

MIT. See LICENSE.

更多类似作品