Add a data driven representation of the current git repository state to the worktree snapshots
WIP: Switch git repositories to use SumTrees Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
@@ -15,6 +15,12 @@ pub trait GitRepository: Send {
|
||||
fn load_index_text(&self, relative_file_path: &Path) -> Option<String>;
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for dyn GitRepository {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("dyn GitRepository<...>").finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl GitRepository for LibGitRepository {
|
||||
fn reload_index(&self) {
|
||||
|
||||
Reference in New Issue
Block a user