Perform only one git statuses call when reloading a git repo after it changes

This commit is contained in:
Max Brunsfeld 2023-07-14 13:52:18 -07:00
parent c69d0d50cd
commit b9e0074793
2 changed files with 6 additions and 4 deletions

View file

@ -33,6 +33,7 @@ pub trait GitRepository: Send {
fn statuses(&self) -> Option<TreeMap<RepoPath, GitFileStatus>>;
fn status(&self, path: &RepoPath) -> Result<Option<GitFileStatus>>;
fn branches(&self) -> Result<Vec<Branch>> {
Ok(vec![])
}