A CLI-first git forge.

cli forge git self-hosted

https://gitbay.org

control: repo blame command — web blame bypasses the registry #42

closed cmc opened this on 2026-08-27 06:39

cmc 2026-08-27 06:39

The web's blame view (internal/httpd/web.go blame) calls gitutil directly; no repo blame control command exists. That breaks the invariant that every capability is a command reachable from stock OpenSSH — blame is currently web-only, invisible to the CLI and the JSON API, and the Parity matrix's "blame: ssh/cli yes" only holds if you count cloning and running git yourself.

The iOS app needs it for the Repositories parity row: browse and log are done, blame is unreachable.

Proposal: repo blame <owner/name> <path> [--ref <r>], read-only, returning hunks {sha, author_name, author_email, date, start_line, line_count} — the shape gitutil.BlameHunk already produces for the web. The web handler then dispatches the command like everything else.

Ref #11

closed by commit a715db2f28 by cmc: control: repo blame, repo commit-file, repo refs; milestone on mr show

2026-08-28 01:20