mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-30 10:13:56 +01:00
`main` split `cmd/edit.rs` into `cmd/edit/*.rs`, so both hunks of the branch moved: `paste_special` kept the `shift_relative` call the branch turns into a transposition, and the inline `mod tests` became `cmd/edit/tests.rs`. Resolution: take `main`'s `cmd/edit.rs` — the branch touched nothing else in the code `main` moved out of it — then re-apply both hunks where they now live: the `transpose` branch in `cmd/edit/paste_special.rs`, and the two tests in `cmd/edit/tests.rs`, beside the existing transposed-paste overshoot test. `crates/formula/src/adjust.rs` and its tests were untouched by `main` and came through the merge byte for byte. Against `main` the merge carries the whole of #2606 (six files) and against the branch tip it carries all of `main`; no hunk from either side was dropped. Checks: `cargo test -p gridcraft-formula -p gridcraft-engine` (502 + 83 engine lib and integration, `cmd::edit::tests::transposed_paste_*` and `tests::copy_transpose` among them; 34 + 8 formula), `cargo fmt -p gridcraft-engine -p gridcraft-formula -- --check`, `cargo clippy -p gridcraft-engine -p gridcraft-formula --all-targets --all-features -- -D warnings`. `cargo xtask ci` cannot run on Windows: the engine's `save_fails_upfront_when_the_temp_name_is_taken` test compiles `std::os::unix::fs::symlink` without a `#[cfg(unix)]` guard (#2541); it was guarded locally to run the suite, and the guard is not part of this commit. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>