Introduce BrancesButton in title bar

Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Petros Amoiridis 2023-05-04 20:27:54 +03:00 committed by Mikayla Maki
parent 797d47a08c
commit e057b0193f
No known key found for this signature in database
3 changed files with 175 additions and 0 deletions

View file

@ -137,6 +137,10 @@ impl RepositoryEntry {
pub fn branch(&self) -> Option<Arc<str>> {
self.branch.clone()
}
pub fn work_directory(&self) -> Arc<Path> {
self.work_directory.0.clone()
}
}
/// This path corresponds to the 'content path' (the folder that contains the .git)
@ -1459,6 +1463,10 @@ impl Snapshot {
.map(|entry| entry.to_owned())
}
pub fn git_entries(&self) -> impl Iterator<Item = &RepositoryEntry> {
self.repository_entries.values()
}
pub fn scan_id(&self) -> usize {
self.scan_id
}