@geminixiang/pi-diff
v0.2.2
Published
Pi extension: open a GitHub-like git diff viewer in the browser.
Maintainers
Readme
@geminixiang/pi-diff
Pi extension that registers /diff and opens a browser diff dashboard using diff2html.

Install
pi install npm:@geminixiang/pi-diffFor local development:
pi install ./path/to/pi-diffUse
/diffThe page shows working tree diff, staged diff, and recent commit diffs. Optional args are passed to the working tree git diff, for example:
/diff --cached
/diff HEAD~1The extension starts a local 127.0.0.1 server for the session and closes it on Pi shutdown/reload.
Development checks
npm test
npm run perfnpm run perf creates a temporary Git repo and fails if watcher events are not coalesced or .gitignored writes trigger Git checks.
