Display branch information per worktree root
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
ffd9d4eb59
commit
d34ec462f8
2 changed files with 54 additions and 19 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue