GITv

Plan v0.3.0 around what one operator uses

Browse files

The milestone sets out seven items that each ship and close on their own: key list and revoke, file history and line links, revision comparison, repository settings over SSH, tagged source archives, single-repository restore from backup, and optional history protection. The web browser stays read-only and script-free. Accounts, permissions, issues, pull requests, forks, release uploads and upstream sync are deferred until a second person pushes, because each would add writable web paths and project data outside git that backups would have to cover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Author
Um9i vulgarmessiah@gmail.com
Date
22 Nov 2026, 23:15
Commit
94562a0248b9
Parent
9fa8012

1 file changed +19−0

+19−0
@@ -0,0 +1,19 @@
# GITv v0.3.0
v0.3.0 makes GITv nicer to live in for its one operator: manage keys without editing files by hand, browse and link history precisely, compare revisions, set repository details, download tagged releases, and restore a single repository from backup. Tick each item once its acceptance criteria are verified by a test.
## Scope
GITv stays a single-operator host. The web browser stays read-only and script-free: every new page is a GET, every change to a repository is an SSH or admin command, and nothing new needs its own storage or backups beyond what git and the repository directory already hold. Each item ships and closes on its own.
Deferred until a second person pushes to the server: individual accounts and repository permissions, issues, pull requests and approvals, fork-based pull requests, release asset uploads, and upstream sync. Each would add a writable web path (forms, CSRF, permission checks on every write) and project data outside git that the backups would have to cover.
## Items, in order
- [ ] **SSH key list and revoke.** `gitv keys [owner]` lists every active key with its owner, SHA-256 fingerprint (as `ssh-keygen -l` prints it) and label. `gitv add-key --label <text>` records a label for a new key. `gitv remove-key <fingerprint>` removes exactly that key, atomically and under the same lock as `add-key`. Verify that a revoked key no longer reaches anything, that a second key for the same owner still works, that an unknown fingerprint changes nothing, and that hand-written lines (options, comments, tabs) survive a removal.
- [ ] **File history and line links.** A file's page links to the commits that changed it (`log` limited to that path, paged like branch history). Source lines carry `#L<n>` anchors, and a "Permalink" link pins the current file to its commit id, so a copied link opens the same lines after the branch moves. A range (`?lines=10-20`) is highlighted by the server, with no JavaScript.
- [ ] **Compare revisions.** `/<owner>/<name>/compare?from=<rev>&to=<rev>` shows the commits in `from..to`, the changed files, and the diff against the merge base. It reuses the commit page's diff rendering, output caps and cache. Cover a release-to-release comparison and a feature branch that has diverged from its target, and the access rules for private repositories.
- [ ] **Description, default branch and index filter.** Over SSH (and as root): `description <name> <text>` writes git's `description` file, and `default-branch <name> <branch>` points `HEAD` at an existing branch. The index shows descriptions and can be filtered by name with a plain GET form (`?q=`). The repository header shows its visibility to the signed-in operator.
- [ ] **Tagged source archives.** The tags page links a `.tar.gz` of each tag, made by `git archive` and served through the download pool, under the repository's access rules. Tag annotations remain the release notes. Verify with a tagged GITv release that the archive matches `git archive` run locally.
- [ ] **Single-repository restore from backup.** Document restoring one repository from a retained snapshot after its trash entry was purged, and test it in `tests/backup.rs`: branches, tags, default branch and visibility come back, it can be restored under a new name, and a repository that has since taken the name is never overwritten.
- [ ] **Optional: protect a repository from history rewrites.** `protect <name> on|off` sets `receive.denyNonFastForwards` and `receive.denyDeletes` for that repository. Verify that force-pushes and branch deletion are refused while ordinary pushes still work, and that the operator's push log and reflogs are unaffected.