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:
parent
bb93447a0d
commit
a58d3d8128
4 changed files with 154 additions and 50 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue