jj/lib/src
Martin von Zweigbergk 49b2f3b6ca commit_builder: keep MutableRepo reference
When you're done with the `CommitBuilder`, you're going to have to
call `write_to_repo()`, passing it a mutable `MutableRepo`
reference. It's a bit simpler to pass that reference when we create
the `CommitBuilder` instead, so that's what this patch does.

A drawback of passing in the mutable reference when we create the
builder is that we can't have multiple unfinished `CommitBuilder`
instance live at the same time. We don't have any such use cases yet,
and it's not hard to work around them, so I think this change is worth
it.
2022-12-26 23:30:52 -08:00
..
protos lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
backend.rs backend: deduplicate id type declarations by using declarative macro 2022-12-23 23:52:03 +09:00
commit.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
commit_builder.rs commit_builder: keep MutableRepo reference 2022-12-26 23:30:52 -08:00
conflicts.rs Rename FileConflictData to ConflictHunk, use it in files.rs. 2022-12-03 15:12:40 -08:00
content_hash.rs content_hash: absorb duplicate hash() functions 2022-12-03 22:31:02 -08:00
dag_walk.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
diff.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
file_util.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
files.rs Rename FileConflictData to ConflictHunk, use it in files.rs. 2022-12-03 15:12:40 -08:00
git.rs git: diff refs to export without building dummy view 2022-12-25 00:11:14 +09:00
git_backend.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
gitignore.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
index.rs cleanup: let new Clippy move variables into format strings 2022-12-14 21:30:58 -08:00
index_store.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
legacy_thrift_op_store.rs op_store: op store delegates should not implement the OpStore trait directly 2022-12-14 14:10:30 -08:00
lib.rs op_heads_store: refactor into an interface and simple implemenation 2022-12-16 10:47:48 -08:00
local_backend.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
lock.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
matchers.rs cleanup: let new Clippy move variables into format strings 2022-12-14 21:30:58 -08:00
nightly_shims.rs build: suppress unstable_name_collisions warnings on stable 2022-02-23 23:41:55 -08:00
op_heads_store.rs op_heads_store: give the OpHeadsStore factory semantics 2022-12-16 10:47:48 -08:00
op_store.rs repo: give OpStore factory load semantics 2022-12-14 14:10:30 -08:00
operation.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
proto_op_store.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
refs.rs jj git push: Make sure each branch is processed at most once 2022-12-21 00:52:17 -08:00
repo.rs commit_builder: keep MutableRepo reference 2022-12-26 23:30:52 -08:00
repo_path.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
revset.pest revset: parse hg/git-like '^' postfix operator and show hint 2022-12-23 00:38:29 +09:00
revset.rs revset: parse hg/git-like '^' postfix operator and show hint 2022-12-23 00:38:29 +09:00
revset_graph_iterator.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
rewrite.rs commit_builder: keep MutableRepo reference 2022-12-26 23:30:52 -08:00
settings.rs cli: when config is invalid, use default config 2022-12-24 07:07:37 -08:00
simple_op_heads_store.rs op_heads_store: give the OpHeadsStore factory semantics 2022-12-16 10:47:48 -08:00
simple_op_store.rs cleanup: address unnecessary_borrow lints reported by Clippy 1.66 2022-12-15 12:38:01 -08:00
simple_op_store_model.rs simple_op_store: replace Protobuf by Thrift 2022-11-13 11:39:33 -08:00
simple_op_store_model.thrift copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
stacked_table.rs cleanup: let new Clippy move variables into format strings 2022-12-14 21:30:58 -08:00
store.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
transaction.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
tree.rs tree: ensure Tree outlives its iterator on dropping self-referential struct 2022-12-15 01:51:25 +09:00
tree_builder.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
view.rs copyright: change from "Google LLC" to "The Jujutsu Authors" 2022-11-28 06:05:45 -10:00
working_copy.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
workspace.rs op_heads_store: give the OpHeadsStore factory semantics 2022-12-16 10:47:48 -08:00