Introduce BrancesButton in title bar
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
797d47a08c
commit
e057b0193f
3 changed files with 175 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue