Split conflicts into their own section (#24324)
Co-Authored-By: Mikayla <mikayla@zed.dev> Release Notes: - N/A
This commit is contained in:
@@ -336,6 +336,12 @@ impl Repository {
|
||||
self.repository_entry.status()
|
||||
}
|
||||
|
||||
pub fn has_conflict(&self, path: &RepoPath) -> bool {
|
||||
self.repository_entry
|
||||
.current_merge_conflicts
|
||||
.contains(&path)
|
||||
}
|
||||
|
||||
pub fn repo_path_to_project_path(&self, path: &RepoPath) -> Option<ProjectPath> {
|
||||
let path = self.repository_entry.unrelativize(path)?;
|
||||
Some((self.worktree_id, path).into())
|
||||
|
||||
Reference in New Issue
Block a user