A CLI-first git forge.

cli forge git self-hosted

https://gitbay.org

control: file edit as a command — web editSubmit bypasses the registry #43

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

cmc 2026-08-27 06:39

The web file editor (internal/httpd/accounts.go editSubmit) calls gitutil.CommitFileChange directly instead of dispatching a control command. The Parity page's own rule says web writes call the same control commands; this one doesn't, and the capability is unreachable from the CLI (without git push) and from the JSON API — so the iOS app cannot offer the web's "edit a file" row.

Proposal: repo commit-file <owner/name> <path> --ref <branch> [--message <m>] [--file -] (content on stdin, same discipline as other long inputs), refusing on protected branches, require-signed repos, and unverified primary email exactly as editSubmit does today — then editSubmit dispatches it.

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