Ray's Knowledge Base
Unlock

The rgit branch base is not cargo-fmt-clean: 3 test files fail fmt at origin's base

FactVerified 18 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

As of commit 8ccc3366 (the base for branch fix/log-all-internal-refs), cargo fmt --all --check reports diffs in exactly three test files: crates/rgit-cli/tests/it/global_ignore.rs, crates/rgit-cli/tests/it/worktree_ops.rs, and crates/rgit-git/tests/it/status.rs. These files are not fmt-clean in the committed base and are unrelated to the log --exclude feature. CI runs cargo fmt --all --check, so a passing branch depends on these being pre-existing debt, not something a feature branch introduced.

Evidence#

Checked out 8ccc3366 into a fresh worktree and ran cargo fmt --all --check: it reported diffs only in global_ignore.rs (lines ~46-184), worktree_ops.rs (~1302-1358), and status.rs (~1446-1473). The feature branch's own 9 changed files are all fmt-clean under rustfmt --edition 2024 --check.