No description
- TypeScript 100%
| components/ui | ||
| dist | ||
| hooks | ||
| lib | ||
| .gitignore | ||
| app.tsx | ||
| components.json | ||
| package-lock.json | ||
| package.json | ||
| PLUGIN_OVERVIEW.md | ||
| README.md | ||
| server.ts | ||
| tsconfig.json | ||
Git Last Commit Diff
A BB plugin that shows the diff of the environment's last commit
(git show HEAD) in a thread's right-side panel.
What it does
- Adds a Last commit action to every thread's side-panel Actions list.
- Opening the action loads a tab that lists each file changed by the last commit of the thread's environment, with per-file stats and a unified diff rendered by bb's host Diff component.
- Binary files are listed without a textual diff; oversized patches are marked as truncated.
How it works
- The backend resolves the thread's environment (
threads.get), resolves HEAD to a commit sha (environments.status), and reads the commit diff throughbb.sdk.environments.diffFilesanddiffPatchwithtarget: commit. - The frontend registers an
experimental_tabthread action and renders the result withexperimental_Diff.
Install
cd bb-plugin-git-last-commit-diff
bb plugin install .
Then open any thread, open the right-side panel, and choose Last commit from the Actions list.