No description
  • TypeScript 100%
Find a file
2026-11-03 12:51:08 +03:00
components/ui Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
dist Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
hooks Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
lib Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
.gitignore Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
app.tsx Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
components.json Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
package-lock.json Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
package.json Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
PLUGIN_OVERVIEW.md Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
README.md Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
server.ts Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00
tsconfig.json Initial release of bb-plugin-git-last-commit-diff 2026-11-03 12:51:08 +03:00

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 through bb.sdk.environments.diffFiles and diffPatch with target: commit.
  • The frontend registers an experimental_tab thread action and renders the result with experimental_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.