ClaudeMods
☰
ZH-TW
● 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.

更多類似作品