mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-28 15:26:25 +00:00
repo: add MutableRepo::merge_index
This commit is contained in:
parent
ddc601fbf9
commit
87ea9102f0
1 changed files with 4 additions and 0 deletions
|
@ -1564,6 +1564,10 @@ impl MutableRepo {
|
|||
self.view.mark_dirty();
|
||||
}
|
||||
|
||||
pub fn merge_index(&mut self, other_repo: &ReadonlyRepo) {
|
||||
self.index.merge_in(other_repo.readonly_index());
|
||||
}
|
||||
|
||||
fn merge_view(&mut self, base: &View, other: &View) {
|
||||
// Merge working-copy commits. If there's a conflict, we keep the self side.
|
||||
for (workspace_id, base_wc_commit) in base.wc_commit_ids() {
|
||||
|
|
Loading…
Reference in a new issue