Reload git index on file events to catch new contents
This commit is contained in:
parent
3f4be5521c
commit
771215d254
4 changed files with 17 additions and 8 deletions
|
@ -4684,7 +4684,7 @@ impl Project {
|
|||
cx.spawn(|_, mut cx| async move {
|
||||
let diff_base = cx
|
||||
.background()
|
||||
.spawn(async move { repo.repo.lock().load_index(&relative_repo) })
|
||||
.spawn(async move { repo.repo.lock().load_index_text(&relative_repo) })
|
||||
.await;
|
||||
|
||||
let buffer_id = buffer.update(&mut cx, |buffer, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue