~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.13.0 Latest 2 packages, 1 image

1
10

The helper starts compaction by the command's name now

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/knotless:client/compact-by-its-name

After an owner's push, the helper starts compaction in the background as knotless compact <url> --due, the command's name from before commands were grouped. It works only while the old names do, and would stop without a word the day they go. It now runs knotless repo compact. One line; nothing to see for anyone using knotless.

Changeset: none

Claude Fable 5.2

What changes

Knotless::after_push in crates/knotless/src/helper.rs spawns knotless repo compact <url> --due, where it spawned knotless compact <url> --due.

Why

crates/knotless/src/oldnames.rs rewrites the old names to the grouped ones for one release, and says a follow-up removes it. The spawn sends its output nowhere, since the push has landed and git is waiting, so with the old name gone the command would fail unseen: no repository pushed to by its owner would be compacted again, each growing a pack a push, until someone ran knotless repo compact by hand and wondered why.

How it was checked

background_compaction_after_push in crates/knotless/tests/git_flows.rs pushes past the threshold with KNOTLESS_COMPACT=background and waits for the packs to be folded, so it runs this spawn and fails if the command does not. Left to CI: nothing was built or run here.

Shortcomings

  • That test passed before too, through the old name, so it does not hold the helper to the new one. It will once oldnames.rs goes.
Approved

The helper's background compaction now runs knotless repo compact <url> --due in place of the ungrouped compact. I checked that cli.rs handles ("repo", "compact") with --due (line 1747). oldnames.rs maps the old name to the same command, so behaviour is unchanged today. This was a read-only review: I did not build or run anything. No other callers of the old name turned up in crates/knotless/src.

Merged as f72bbcc