Skip to content

Add plugin entry: git - #1063

Open
mifhud wants to merge 1 commit into
get-bb:mainfrom
mifhud:submit-git
Open

mifhud wants to merge 1 commit into
get-bb:mainfrom
mifhud:submit-git

Conversation

@mifhud

@mifhud mifhud commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What the plugin does

Git Panel puts a source-control panel beside the thread. It pins one workspace and
repository, then shows the working tree as a flat list or a folder tree with stage,
unstage, discard, and a commit box; a diff viewer (unified or split, whitespace
folding, whole file); a lane graph over every local branch, remote-tracking branch
and tag; a linear history of the checked-out branch; a per-file history; and stash
push/apply/pop/drop. Clicking a file or a commit file opens its diff as a tab in
BB's own side panel, with the panel's own drawer as the fallback.

New plugin id, no existing entry, no v1 document change.

Release source

  • Repository: https://github.com/mifhud/bb-plugin-git.git (public)
  • Source entry: { "git": { "url": "https://github.com/mifhud/bb-plugin-git.git", "range": "^0.1.0" } }
  • Release: annotated tag v0.1.0 on commit a6352e9 (package bb-plugin-git@0.1.0, the first release).
  • Plugin id from scripts/derive-plugin-id.mjs: git.

Plugin checks that passed

  • npm run typecheck (tsc --noEmit) — clean.
  • npm test (node --test src/*.test.ts lib/*.test.ts) — 82 tests, 12 suites, 0 failures.
  • bb plugin build — built dist/server.js, dist/app.js, dist/app.css on bb 0.50.1.

Marketplace checks that passed

  • npm run build — 680 entries, no errors.
  • npm test — pass.
  • npm run gate:v1 — "The v1 entry gate passed. 1 new entries do not need an exception."

Permissions, external services, security

  • Declares no BB permissions beyond the thread/sidebar surfaces it registers; no host entry, so no filesystem API outside the plugin's own server process.
  • No external service, no network access, no account, no telemetry. The only requirement is git on BB's primary host.
  • Every git call is runGit([...]) on an argv array — never a shell string — through node:child_process in the plugin server.
  • The client never sends a filesystem path: it sends an opaque rootId plus repo-relative data, and the server re-resolves the root and confines the repo selector to the pinned root on BB's primary host. Branch names, hashes, and paths are validated (charset, no leading -, hex, containment under the repo) before use.
  • Destructive actions (discard, reset, force delete, drop stash) confirm first; a non-ancestor or merge-commit cherry-pick is refused before the repo can enter a mid-pick state.

Screenshots

All four are captured from the running plugin in BB 0.50.1 against a real repository
(the public get-bb/marketplace clone), with a wide panel and no private data.

  1. changes.png — Changes tab: commit box, Staged Changes / Changes sections, and three untracked files of the very entry this PR adds.
  2. diff.png — the diff view for one of those files: unified lines with line numbers, +n −n counts, and the Unified / Split / WS / Full toggles.
  3. graph.png — Graph tab: one commit expanded with its hash, author, refs, Undo Commit / Revert / Reset / Rebase actions and the file it touched, above the lane graph.
  4. file-history.png — File tab: every commit that touched scripts/build.mjs, newest first.

Overview text

Copied from the plugin repository's PLUGIN_OVERVIEW.md, with one sentence added
for the Stash tab (the file said "five tabs" and described four); the same sentence
was added to the plugin repository in the v0.1.0 release commit, so the two files
stay identical.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant