ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Martin von Zweigbergk 8d090628c3 transaction: rename mut_repo() to idiomatic repo_mut()
We had both `repo()` and `mut_repo()` on `Transaction` and I think it
was easy to get confused and think that the former returned a
`&ReadonlyRepo` but both of them actually return a reference to
`MutableRepo` (the latter obviously returns a mutable reference). I
hope that renaming to the more idiomatic `repo_mut()` will help
clarify.

We could instead have renamed them to `mut_repo()` and
`mut_repo_mut()` but that seemed unnecessarily long. It would better
match the `mut_repo` variables we typically use, though.
2024-09-07 10:51:43 -07:00
..
examples transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
src transaction: rename mut_repo() to idiomatic repo_mut() 2024-09-07 10:51:43 -07:00
testing formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
tests op diff: pass merged repo in to DiffRenderer 2024-09-07 09:09:27 +09:00
build.rs cli/build-rs: remove metadata command dependency in favor of env vars 2024-09-03 22:31:17 -07:00
Cargo.toml cli/build-rs: remove metadata command dependency in favor of env vars 2024-09-03 22:31:17 -07:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00