Ray's Knowledge Base
Unlock

Command::Log field additions require editing mcp.rs's git_log constructor too

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

Statement#

When adding a field to the public Command::Log enum variant in rgit-cli/src/cli.rs, every struct-literal construction of that variant must also set it; the only one outside the source match sites is crates/rgit-cli/src/mcp.rs ("git_log" => Command::Log { ... }). The mcp.rs initializer must be updated in the same task, which widens the task's files: list.

Evidence#

Adding a field to the Command::Log enum variant in rgit-cli/src/cli.rs forced crates/rgit-cli/src/mcp.rs (the "git_log" => Command::Log { ... } initializer) to set it too, or the crate would not compile (E0063 missing field). axi.rs and cli.rs pattern matches all used .. so they were unaffected. The task's files: list had to be amended to add mcp.rs.