Introduce BrancesButton in title bar
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
co-authored by
Mikayla Maki
parent
797d47a08c
commit
e057b0193f
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user