21 roadmap steps across 2 items · 9 issue fixes · 11 other changes
v0.5.30 is mostly a pre-0.6 API consolidation in grit-lib (typed errors, CancelToken, Pathspec, RefName), plus log performance and correctness fixes.
This adds seven API-ratchet counters that expose duplicate cancellation, progress, ref-name, pathspec, config/repository, and constructor concepts before the 0.6 API freeze. The round-2 corrections make the counters reflect rustdoc’s real public struct-field representation and effective visibility of methods on public traits.
Adds the canonical typed `Pathspec` API and makes repository/status callers carry parsed global pathspec semantics instead of repeatedly interpreting raw strings. The round-2 fix specifically ensures status retains literal/glob/noglob/icase globals through every tracked and untracked filtering path.
This replaces raw public cancellation flags and progress-sink cancellation with a cloneable CancelToken shared by callers, workers, HTTP transport, and CLI signal handling. The round-2 follow-up restores the pack test import, repairs the API-ratchet fixture, hides AtomicBool from the public API, and updates stale sink-driven cancellation tests to pass their token explicitly.
This change replaces public free-form ref-name validators with owned `RefName`, borrowed `RefNameRef`, and composable `RefNamePolicy` parsing. It ports library, CLI, HTTP/supporting callers and tests to the typed API, including an 89-case upstream-derived compatibility corpus checked against system Git.
This consolidates configuration reads behind the repository-owned `Config<'repo>` handle, gives `Config` and `ConfigSet` one strict typed-getter shape, and reduces config loading to one public `ConfigSet::load`. It also removes redundant `&ConfigSet` parameters from repository-scoped public APIs and updates the CLI, tests, docs, public API snapshot, and a zero-count API ratchet.
This consolidates fetch wire events and pack-building progress onto the library's shared ProgressSink, removing the fetch-specific progress trait/null sink and callback-style pack progress. The round-2 fix completes the integration-test migration and ensures cancellation/progress wrappers do not swallow the newly merged hooks.
This consolidates repository construction around `Repository::open`, `Repository::discover`, and `Repository::init`, with configuration carried by `RepositoryOptions`. The round-3 follow-up mechanically ports the last ten full-only init call sites to the new `(Repository, InitOutcome)` return without changing production behavior.
Replaces the cancellation trait family with one concrete `CancelToken` throughout grit-lib and its consumers, while retaining deterministic test-only cancellation support behind `test-support`. The round-2 follow-up rewrites noncompliant commit messages and refreshes stale hot-text linker symbols.
Consolidates repository config writes behind `repo.config()` and out-of-repository writes behind `ConfigEditor`, with scoped options, cache invalidation, CLI wiring, compatibility coverage, and updated API documentation. The round-three patch also prevents invalid UTF-8 config files from being overwritten and adds selective replace-all coverage, but its API-ratchet evidence is currently manufactured by parameter renames.
Ref names are now typed throughout the ref-store traits, transactions, repository handles, reflog queries, branch/tag consumers, and custom backend examples. The round-two follow-up restores the three missing unit-test imports, fixes doctest imports, and strengthens files/reftable Git round-trip coverage through `Repository::references()` and `Repository::reflogs()`.
This consolidates path filtering across diff, log/revwalk, patch-id, commit scope, and CLI wiring on the typed Pathspec API, while deleting the old string-oriented public helpers. The round-3 fix restores the intended supported surface by moving full-test-only date, pack, and pathspec helpers behind the test-support feature instead of exporting internals.
Consolidates repository-facing API names around predictable accessor/handle pairs: `index()`/`IndexFile`, `revwalk()`/`RevWalk`, and plural `Bundles`, `Remotes`, and `Worktrees`. It mechanically ports the library, CLI, examples, utilities, tests, benchmarks, public-API snapshot, and guides, and adds a ratchet against legacy accessor names.
This change introduces a central `classify` API for CLI errors and moves the large hint-rendering match table into `error_map.rs`. JSON, exit-status, and human render paths are partially rewired to use it, with two new unit tests intended to protect the mapping.
This establishes the typed-error migration contract, adds reusable path/lock/cancellation leaf errors, and records the current error debt so later area-by-area migrations can only improve it. It also removes umbrella Message construction from examples and pins current error kind slugs and size ceilings.
This change establishes `WorktreeError` as the worktree-area error and moves linked-worktree registry failures under `WorktreeError::Linked(LinkedWorktreeError)`. The round-2 fix removes accidental duplicate API builders and the obsolete operation alias while preserving warning-free builds and the API-quality ratchet.
Consolidates ref/reflog failures into `RefError`, notes failures into `NotesError`, and folds branch/tag command failures into their area enums while preserving stable CLI error kinds. Call sites, integration coverage, examples, and CLI mapping are migrated to the typed area errors; the round-3 patch fixes formatting and removes one unreachable mapper arm.
Introduces a dedicated, structured `StashError` surface and routes public stash read/write/apply/pop/drop behavior through it while preserving legacy CLI error kinds. The round-3 correction removes a redundant anyhow conversion that previously made Clippy fail.
This consolidates revision and diff failures into typed area errors and completes the public RevisionError migration for revwalk streams and log-walk queries. CLI consumers preserve structured JSON error kinds while adapting to the typed library API, and focused compatibility/error tests cover the affected behavior.
This consolidates transport, authentication, fetch, push, clone, and related failures under a typed RemoteError while preserving the CLI error contract. Round three fixes the remaining CLI ratchet mismatch and ensures bare RemoteError cancellation exits with 130.
Consolidates index failures behind a structured, public `IndexError` and moves index read/write, write-tree, split-index, untracked-cache, EOIE/IEOT, and index-lock entry points onto `IndexResult`. Round 3 closes the remaining type-erasure and test-specificity gaps by preserving nested subsystem errors and asserting deterministic corruption context.
This change introduces a dedicated, documented `RepositoryError`, converts repository/config/hook failure paths away from stringly umbrella errors, and updates callers and tests to match typed variants while preserving stable CLI error kinds. The round-four fix corrects the one stale ref-storage test assertion to expect `V1OnlyExtensionsInFormatZero`.
This changes the no-pack-context ODB fast path to inflate packed whole commits through their first subject line instead of stopping at the header/message separator. Human, oneline, and Markdown log rendering now receives the same subject-bearing prefix whether or not a commit-graph and pack are present.
Missing tags now produce a stable `tag_not_found` field in `--json` output for tag operations routed through the common tag error mapper. The human error text and failure exit code remain unchanged.
This change corrects the optimized gitignore matcher for anchored leading/trailing-star patterns. `/*.log`, `/*`, and `/keep*` are now confined to one path segment, while slash-free basename patterns such as `*.o` retain their existing fast behavior.
Mailmap parsing now accepts Git’s name-only second segment and ignores text after a valid second email pair, so author grouping merges identities the same way as `git shortlog`. The round-three correction limits name-boundary trimming to ASCII whitespace, preserving Unicode NBSP bytes like Git.
This change removes the redundant full-history graph-linkage pass, avoids unused row-topology allocation, and streams oneline graph rendering directly to the output. On git/git it cuts grit’s full graph runtime by about 59% and peak memory by about 48% without changing rendered bytes.
This change makes oneline decorated log output reuse one object-ID abbreviation batch for the whole listing instead of reopening configuration and rescanning object storage for each commit. The round-3 follow-up repairs the stale intra-doc link introduced when the old rendering helper was removed, plus a second fully qualified CLI rustdoc link.
Ref-set flags now replace the implicit HEAD start when no explicit revision is given, so log and revs walk only tag, branch, or remote tips. Empty ref-set matches produce a successful empty result/count zero, while a bare library walk with no tokens and no ref selection retains its existing error.
The branch streams unlimited commit-filter walks and tries to reuse through-subject commit data for one-line log rendering. It also adds Git-order and body-grep regressions, but its round-4 fix commit does not resolve the previously reported harness, global-state, or memory blockers.
This change makes full-history log filtering stream commit traversal data instead of retaining/parsing unnecessary commit payloads, while preserving enough bytes for one-line rendering and loading full messages when grep requires them. It also removes the now-unused replace-aware commit-read helper and restores integration coverage/wiring.
Replaces the large JSON-filter regression test’s strict timing race with deterministic checks. The new test validates filtering an 8,000-file payload, verifies direct serde-to-jaq output agrees with the JSON reparse reference path, and guards that production `write_json` stays on direct serialization.
Repairs the two reported CI failures with two one-line corrections. Rustdoc now resolves the add staging API link, and the API ratchet baseline matches the scanner’s measured 100 cancellation-type offenders.
This refactor consolidates CLI rendering of library errors into `error_map.rs`, replaces broad per-file match budgets with a source ratchet, and expands pinned output contracts. The latest follow-up specifically moves config-unset and rebase-no-upstream prose out of command modules and adds rows for the previously named variants.
This removes a duplicate test-only pack-index import and makes one status rustdoc link resolve through its canonical module path. Together those two mechanical corrections restore the test and rustdoc jobs that currently fail on main.
Repairs the CI baselines and compile-time contracts after recent grit-lib error/API changes. It updates CLI error tests, fixes rustdoc/example links, points semver checking at an available baseline, and refreshes the generated public API snapshot and ratchet.
This change repairs CI ratchets, restores deprecated config compatibility shims, and removes duplicate-paste corruption from an older main snapshot. On today's main, the overlapping corruption repair is already present, while the proposed semver baseline is now behind a newer intentional cancellation API consolidation.
This change makes the API ratchet count renamed git-directory path parameters instead of letting naming hide nine offenders, and adds a dedicated guard for the sole supported config-write path. It also repairs branch merge fallout and corrects deterministic cancellation polling so the review branch builds and tests cleanly.
Makes API-ratchet inputs deterministic by separating its pinned rustdoc JSON from public-API hidden-item and coverage artifacts. It also updates the cancellation metric and its fixtures to the consolidated CancelToken API, advances the semver baseline, and retains the associated cancellation regression repairs.
Publishes the previously unavailable CI repair commit to GitButler Mesh and keeps the underlying focused fixes intact. The changes remove three deprecated Repository aliases, repair Windows-only compilation, and make the API ratchet understand current rustdoc JSON shapes.
The branch introduces a typed non-recursive ObjectReadFailure source for corrupt loose and packed object reads and adds mapping/coverage for it. It does not deliver the requested repository-wide one-variant-per-area umbrella collapse.
Makes repository discovery tests independent of host-level safe.directory settings and updates the pre-0.6 semver comparison point to the already-ratified API surface. The change is test/config-only and does not alter library runtime behavior, on-disk formats, or wire protocols.