Display branch information per worktree root

Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Petros Amoiridis 2023-05-03 20:41:44 +03:00 committed by Mikayla Maki
parent ffd9d4eb59
commit d34ec462f8
No known key found for this signature in database
2 changed files with 54 additions and 19 deletions

View file

@ -1484,6 +1484,10 @@ impl Snapshot {
pub fn inode_for_path(&self, path: impl AsRef<Path>) -> Option<u64> {
self.entry_for_path(path.as_ref()).map(|e| e.inode)
}
pub fn git_branch(&self) -> Option<String> {
Some("test".to_owned())
}
}
impl LocalSnapshot {