templater: consistently use double ?? to denote conflicted refs

I think this is just a remainder of 65de7cb0eb "`jj log`: Change conflicted
branches from `br?` to `br??`."
This commit is contained in:
Yuya Nishihara 2023-10-25 15:30:07 +09:00
parent b30d5bf1c7
commit f7f08cbe77

View file

@ -385,7 +385,7 @@ fn build_branches_index(repo: &dyn Repo) -> RefNamesIndex {
} }
for (remote_name, remote_ref) in unsynced_remote_refs { for (remote_name, remote_ref) in unsynced_remote_refs {
let decorated_name = if remote_ref.target.has_conflict() { let decorated_name = if remote_ref.target.has_conflict() {
format!("{branch_name}@{remote_name}?") format!("{branch_name}@{remote_name}??")
} else { } else {
format!("{branch_name}@{remote_name}") format!("{branch_name}@{remote_name}")
}; };
@ -401,7 +401,7 @@ fn build_ref_names_index<'a>(
let mut index = RefNamesIndex::default(); let mut index = RefNamesIndex::default();
for (name, target) in ref_pairs { for (name, target) in ref_pairs {
let decorated_name = if target.has_conflict() { let decorated_name = if target.has_conflict() {
format!("{name}?") format!("{name}??")
} else { } else {
name.clone() name.clone()
}; };
@ -415,7 +415,7 @@ fn extract_git_head(repo: &dyn Repo, commit: &Commit) -> String {
let target = repo.view().git_head(); let target = repo.view().git_head();
if target.added_ids().contains(commit.id()) { if target.added_ids().contains(commit.id()) {
if target.has_conflict() { if target.has_conflict() {
"HEAD@git?".to_string() "HEAD@git??".to_string()
} else { } else {
"HEAD@git".to_string() "HEAD@git".to_string()
} }