Perform only one git statuses call when reloading a git repo after it changes
This commit is contained in:
parent
c69d0d50cd
commit
b9e0074793
2 changed files with 6 additions and 4 deletions
|
@ -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![])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue