Add support for git branches on remote projects (#19755)
Release Notes: - Fixed a bug where the branch switcher could not be used remotely.
This commit is contained in:
parent
5506669b06
commit
c69da2df70
25 changed files with 993 additions and 127 deletions
|
@ -2385,6 +2385,12 @@ impl Snapshot {
|
|||
.map(|entry| entry.to_owned())
|
||||
}
|
||||
|
||||
pub fn git_entry(&self, work_directory_path: Arc<Path>) -> Option<RepositoryEntry> {
|
||||
self.repository_entries
|
||||
.get(&RepositoryWorkDirectory(work_directory_path))
|
||||
.map(|entry| entry.to_owned())
|
||||
}
|
||||
|
||||
pub fn git_entries(&self) -> impl Iterator<Item = &RepositoryEntry> {
|
||||
self.repository_entries.values()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue