mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-02 18:01:05 +00:00
rewrite: delete TODOs about labels for each term in a conflict
I don't think we'll want to record a label for each term, because such labels would get stale, and it seems hard to make them make sense after transferring a remote to another repo. I think we'll probably want to infer labels on demand instead (#1176).
This commit is contained in:
parent
8b2b8d04cc
commit
651a3cbe15
2 changed files with 0 additions and 4 deletions
|
@ -154,8 +154,6 @@ content_hash! {
|
|||
content_hash! {
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
pub struct ConflictTerm {
|
||||
// TODO: Store e.g. CommitId here too? Labels (theirs/ours/base)? Would those still be
|
||||
// useful e.g. after rebasing this conflict?
|
||||
pub value: TreeValue,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,7 +81,6 @@ pub fn rebase_commit(
|
|||
} else {
|
||||
let old_base_tree = merge_commit_trees(mut_repo, &old_parents)?;
|
||||
let new_base_tree = merge_commit_trees(mut_repo, new_parents)?;
|
||||
// TODO: pass in labels for the merge parts
|
||||
let merged_tree = merge_trees(&new_base_tree, &old_base_tree, &old_commit.tree())?;
|
||||
merged_tree.id().clone()
|
||||
};
|
||||
|
@ -104,7 +103,6 @@ pub fn back_out_commit(
|
|||
) -> Result<Commit, TreeMergeError> {
|
||||
let old_base_tree = merge_commit_trees(mut_repo, &old_commit.parents())?;
|
||||
let new_base_tree = merge_commit_trees(mut_repo, new_parents)?;
|
||||
// TODO: pass in labels for the merge parts
|
||||
let new_tree = merge_trees(&new_base_tree, &old_commit.tree(), &old_base_tree).unwrap();
|
||||
let new_parent_ids = new_parents
|
||||
.iter()
|
||||
|
|
Loading…
Reference in a new issue