forked from mirrors/jj
repo: make check_out()
call edit()
This reduces duplication a little, and it makes logical sense.
This commit is contained in:
parent
dd3472924b
commit
4777508df0
1 changed files with 1 additions and 3 deletions
|
@ -747,7 +747,6 @@ impl MutableRepo {
|
|||
settings: &UserSettings,
|
||||
commit: &Commit,
|
||||
) -> BackendResult<Commit> {
|
||||
self.leave_commit(&workspace_id);
|
||||
let wc_commit = self
|
||||
.new_commit(
|
||||
settings,
|
||||
|
@ -755,8 +754,7 @@ impl MutableRepo {
|
|||
commit.tree_id().clone(),
|
||||
)
|
||||
.write()?;
|
||||
self.set_wc_commit(workspace_id, wc_commit.id().clone())
|
||||
.unwrap();
|
||||
self.edit(workspace_id, &wc_commit).unwrap();
|
||||
Ok(wc_commit)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue