GITv
master
MILESTONE.md20 lines, 4.2 KB

GITv v0.4.0

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, 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.

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

  • 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.