17 roadmap steps across 2 items · 4 issue fixes · 12 other changes
grit v0.5.33 fixes four bugs (truncated serve clones, bundle prerequisites, Windows backslash names, upload-pack memory) and restructures grit-cli into separate command, dispatch and render layers ahead of 0.6.
This refactor creates a dedicated CLI rendering layer, moves generic human/Markdown/diff helpers into it, introduces a streaming-render contract, and leaves output.rs focused on emitting and JSON filtering. It also adds a source-layer line ratchet and documents the parse/outcome/render boundary.
This reorganizes the monolithic CLI into per-command Clap argument modules and per-command dispatch functions. `main.rs` now retains process setup and lifecycle handling, while a 79-line router sends each parsed argument value to its command module; contract tests and help snapshots preserve the CLI surface.
This change creates a single CLI presentation module for failures and routes normal command errors, clap parse errors, hook output, and top-level fatal lines through it. Human output remains on stderr, while JSON and Markdown remain on stdout with the existing structured schema and hints.
This change separates fetch, pull, push, clone, remote, and bundle into parse, execution-outcome, dispatch, and render responsibilities. OutputMode decisions now happen in network dispatch, while stable CLI DTOs and human/Markdown renderers live under render/ without changing JSON field shapes.
This change separates branch, tag, switch, merge, pick, revert, rebase, history, and shortlog presentation into dedicated render modules while keeping command modules focused on orchestration. It also exposes typed bounded ahead/behind commit outcomes for shortlog and now correctly snapshots that public API.
This partial change locks seven new three-mode output snapshots and moves status dashboard derivation into a typed grit-lib summary, with a small CLI conflict-heading renderer. It preserves the sampled status/stash/worktree output, but its required package suite and API ratchet are red and existing tests are weakened, so it should not integrate yet.
This refactor separates diff request dispatch, library-owned presentation outcomes, CLI DTO conversion, and streaming output while preserving the v1 output contract. The round-2 patch restores the exact streamed JSON key set and removes a duplicate structured-diff computation from the large worktree patch path.
Moves maintenance/config/fsck/hooks/ignore/init/skill presentation into dedicated CLI render modules while keeping the v1 JSON DTO contract CLI-owned. Adds typed GC phase and fsck grouping outcomes to grit-lib, then completes the round-3 size fix by relocating GC phase mapping so commands/gc.rs is 535 lines.
This change separates log-adjacent CLI commands into command, dispatch, and render layers while moving reusable presentation decisions for log, rev listing, and cat into typed grit-lib APIs. The round-two fix commits the generated public API contract and updates the ratchet so CI recognizes the intended surface.
This separates CLI command execution from rendering for checkin, integrate, sync, share, slice, update, auth, and serve while preserving the existing human, JSON, and Markdown contracts. Domain classifications for sync, share filtering, and check-in refusal now come from typed grit-lib outcomes; the round-2 fixes specifically remove the remaining string-derived refusal decision and record the expanded public API.
This stack separates CLI argument/dispatch code, command execution, and rendering across the command surface, and adds architecture contracts intended to prevent output-mode branching and renderer implementations from returning to commands/. The round-3 fixes extend those contracts to directory-style commands and relocate the remaining cat/log/revs/share/status/show/diff rendering paths.
Automatically chooses the newest reachable stable v0.6+ tag as grit-lib’s semver baseline while preserving the pre-0.6 pin fallback. It also enforces additive-only 0.6.x evolution, removes the temporary pin during ratchet refresh, and wires the check into CI and the local gate.
Adds a deterministic generated API audit to API.md and enforces it in CI, with current ratchet summaries, module usage, Repository handles, and residual offenders. The round-two fix makes the handle table accurate by deduplicating public-api entries, filtering value/service getters, and rendering nested generic types correctly.
Removes the remaining pre-0.6 deprecated grit-lib shims, leaving the supported Repository/focused-handle API as the sole public path. It also adds a rustdoc-JSON ratchet that holds public deprecations at zero and migrates affected callers and tests.
Adds a single first-read page for grit-lib embedders covering repository entry points, focused handles, options/progress/error conventions, extension points, and the 0.6.x compatibility promise. The page embeds a real Rust example that initializes a temporary repository and exercises objects, refs, diff, and typed errors, with a regression test that runs it.
Adds a practical 0.5.x-to-0.6 library migration guide and an enforced generated table covering every removed public API path. The round-3 fix closes the validator gap for replacements written as a grit_lib path followed by a human annotation.
This refresh consolidates the pre-0.6 public API snapshot and ratchets, removes obsolete migration shims and deprecated aliases, updates thin CLI call sites, and strengthens the API audit script. The round-2 fix restores the six affected full-test call sites through supported Repository APIs or the explicitly unstable test-support surface.
Keeps smart-HTTP upload-pack's cancellation guard alive inside the blocking producer until pack generation and its final buffered write finish. This prevents medium and large multi-object fetch responses from being cut off when the async handler hands the streaming body to Axum.
Bundle verification now accepts an unreferenced prerequisite only when its exclusive commit/tree/blob history is actually readable. The round-3 correction ensures a shallow boundary reached through a prerequisite's parent is validated before traversal stops, preventing incomplete graphs from being accepted.
This change prevents a Windows checkout from interpreting a literal backslash inside one Git tree-entry name as a directory separator. It returns a dedicated typed error while keeping legal backslash filenames available on non-Windows systems and when NTFS protection is disabled.
Deduplicates repeated upload-pack `want` records while parsing protocol v0 and repeated `want`/`have` records while parsing protocol v2. First-seen order and first-want capabilities are preserved, so pack output is unchanged while duplicate-request memory no longer grows linearly.
This changes the private Unix byte-range lock helper to accept the same `c_short` type used by `libc::flock.l_type`. It removes the Apple aarch64 compile mismatch without changing locking behavior or public APIs.
Updates public documentation for the VM cache-drop helper so rustdoc no longer resolves links to private constants. Runtime behavior, public API, repository formats, and protocol behavior are unchanged.
The review branch contains no changes relative to current origin/main because the rustdoc correction has already landed as df584d455. That correction replaces two links to private constants with literal /proc paths, preserving documentation while satisfying strict rustdoc.
This change creates a dedicated CLI rendering layer, migrates existing human/Markdown rendering into it, and adds a source-level purity test plus a line-count ratchet. Follow-up commits harden cfg(test) skipping for literals and nested block comments.
This branch moves status dashboard assembly behind the supported `repo.status()` handle and locks status, stash, and worktree rendering with snapshots. The follow-up rewrites all four commits so their messages meet factory hygiene without changing the reviewed implementation.
Fixes the two broken intra-doc links that made strict workspace rustdoc fail. One comment now describes the clap parse/build behavior without linking a trait-provided method that rustdoc cannot resolve on `Cli`; the other uses an absolute crate path for `full_cli_command`.
Refreshes the committed grit-lib API snapshot to match the pinned generator, formats the two rustfmt-reported expressions, and removes obsolete CLI markdown renderers plus one unused re-export. The live render implementations and their tests remain in grit-cli/src/render/*.
Repairs semver baseline selection by pinning the API ratchet to a commit that exists on main. It also prevents future missing 40-character pins from reaching cargo-semver-checks as invalid revisions, while preserving named-ref behavior and formatting the two files that failed rustfmt.
Adds a Git-native fallback for API consumer file counting when ripgrep is unavailable, eliminating the scripts and public-api CI crashes. Refreshes the generated API audit snapshot and adds a regression test without changing product code or public API.
Moves grit-cli command execution into an enforced three-layer command/dispatch/render structure, with private dispatch-selected emit types and architecture contract tests. It also adds the small grit-lib typed outcomes needed by the thin CLI and corrects the public API snapshot by removing a stale duplicate GcPhaseReport declaration.
Synchronizes the committed grit-lib API snapshot and its generated 0.6 migration table with the pinned API tool, and repairs four stale intra-doc links introduced by the CLI layering change. This is a generated-data and documentation-only correction with no runtime or public API behavior change.
There is no integration delta: the author dropped their redundant snapshot commit after the equivalent fix landed on main, so the reviewed branch now points exactly at origin/main. The landed snapshot normalization is locally valid, but a separate shallow-checkout problem still leaves GitHub’s public-api job red.