Plan v0.4.0: deploy, rename, search, blame, history filters, feeds, status
Browse filesv0.3.0 is released. The next milestone keeps the same rules (read-only, script-free web; changes over SSH or admin commands) and aims at finding things, following changes and running the server with less effort. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Author
- Um9i vulgarmessiah@gmail.com
- Date
- 22 Nov 2026, 23:55
- Commit
- 810ebe75d53b
- Parent
- 45cf485
1 file changed +12−11
+12−11
| @@ -1,19 +1,20 @@ | ||
| # GITv v0.3.0 | ||
| # GITv v0.4.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. | ||
| v0.4.0 makes GITv quicker to find things in, easier to follow, and less work to run: deploy and roll back in one command, rename repositories, search code, see who changed each line, filter history, follow repositories by feed, and check the server's health at a glance. 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. | ||
| GITv stays a single-operator host, as in v0.3.0. 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. | ||
| Still 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 mirroring. | ||
| ## Items, in order | ||
| - [x] **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. | ||
| - [x] **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. | ||
| - [x] **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. | ||
| - [x] **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. | ||
| - [x] **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. | ||
| - [x] **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. | ||
| - [x] **Optional: protect a repository from history rewrites.** `protect <name> on|off` sets `receive.denyNonFastForwards` and `receive.denyDeletes` for that repository's pushes (git applies both to branches only). 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. | ||
| - [ ] **One-command deploy and rollback.** `scripts/deploy` performs the release steps in CLAUDE.md: check root access, build with `--locked --release`, refuse binaries needing a newer glibc than the droplet's, stage the files beside the previous versions, verify checksums on the droplet, replace each file atomically, run `restorecon`, install changed `deploy/` files (and `systemctl daemon-reload` for units), restart `gitv-web` only when it changed, then check the HTTPS homepage and that `git ls-remote gitv HEAD` matches the deployed commit. `scripts/deploy --rollback` restores the previous versions the last deploy kept. Verify against a scratch target directory standing in for the droplet: a deploy, an unchanged redeploy that restarts nothing, a refused build, and a rollback. | ||
| - [ ] **Rename a repository.** `rename <old> <new>` over SSH and as root moves `<owner>/<old>.git` to `<new>.git` through the owner directory's handle with `RENAME_NOREPLACE`, so it never replaces anything. Verify that the repository keeps its refs, visibility, protection and description, that a taken name is refused, that another owner's key can't rename it, and that the old name then reads as missing. | ||
| - [ ] **Search code.** `/<owner>/<name>/search?q=&ref=` runs `git grep -F -n -I` at a revision with literal pathspecs and a capped number of matches, and links each match to its line at that commit. The file and folder pages carry a plain GET search form. Verify fixed-string matching (a query like `a.*b` matches only itself), binary files skipped, the cap reported, escaping, and the repository's access rules. | ||
| - [ ] **Blame.** A file's page links to a blame view showing, for each line, the commit that last changed it, linking to that commit and to the file as it was before the change. It's cached by commit and path, and files over the display limit are refused as the file view does. Verify line attribution against `git blame --porcelain` on a file changed across several commits. | ||
| - [ ] **Filter history.** `log?q=` matches commit messages and `log?author=` matches author names and addresses, both as fixed strings, and they combine with each other, the path filter and paging. Verify that regular-expression characters match literally and that filters survive paging. | ||
| - [ ] **Feeds.** Atom feeds of a public repository's commits on its default branch and of its tags, linked from the history and tags pages with `<link rel="alternate">`. Private repositories have none, since feed readers can't sign in. Verify the feeds parse as Atom, entries carry stable ids and absolute links, and a private repository's feed is not found. | ||
| - [ ] **`gitv status`.** As root, one report: the latest snapshot's time and outcome and the last restore check's result, each repository's size, visibility and protection, trash entries with days left, and any failed GITv units. It reads only and changes nothing. Verify against a scratch installation with snapshots, a trashed repository and a protected one. | ||
| - [ ] **Optional: protect tags too.** Extend `protect` so a protected repository also refuses moving or deleting tags. Git's receive settings apply to branches only, so `gitv` checks the pushed ref updates itself as a pre-receive hook it manages, while every other hook stays disabled. Verify that new tags are accepted, that moving or deleting one is refused with a clear message, and that unprotected repositories are unaffected. | ||