codemap icon indicating copy to clipboard operation
codemap copied to clipboard

--diff: overlay a git diff / PR onto the tree map

Open JordanCoin opened this issue 3 months ago • 1 comments

▎ ▎ codemap already renders the repo tree and resolves remote GitHub URLs. Add a mode that overlays a change onto that map instead of listing files flat: ▎ - codemap --diff main...branch (or a ref pair) colors the tree by change — added / modified / removed files and the dirs that contain them, scoped to what the diff touches. ▎ - accept a GitHub PR/compare URL directly (reuse the existing remote-URL resolution) → render that PR's diff as a tree. ▎ - compose with --deps/--imports for blast radius: show not just what changed but what imports the changed files, as a subtree. ▎ ▎ Why: reviewing a change is much faster when you see where in the structure it lands, not a flat file list — the tree is the mental model, the diff is the delta on it.

JordanCoin avatar Aug 12 '26 19:08 JordanCoin

Update: two of the three parts are on main. --diff renders changed files on the tree with (new) and ✎ (+a -b) marks and a ⚠ X is used by N other files footer, and blast-radius composes diff, deps and importers into one bounded bundle. Remaining: accepting a PR or compare URL directly, reusing the remote-URL resolution. Leaving open for that part.


Generated by Claude Code

JordanCoin avatar Oct 07 '26 03:10 JordanCoin