helix-mirror/helix-vcs/src
kanielrkirby f0282689da
Use try_lock in diff_handle for Diff gutter (#11092)
* Use `try_lock` in `diff_handle` for Diff gutter
- Add the method `try_load() -> Option<Diff>` to `DiffHandle`, using `try_lock` to avoid deadlocks.
- Use said method in `gutter.rs diff()`, which will use a blank `GutterFn` instead when met with a locked `Diff`.

* Revert changes

* Replace `Mutex` with `RwLock` in `Diff`

---------

Co-authored-by: Kaniel Kirby <pirate7007@runbox.com>
2024-08-10 00:32:46 +09:00
..
diff Use try_lock in diff_handle for Diff gutter (#11092) 2024-08-10 00:32:46 +09:00
git cleanup: remove useless Git struct, using free functions instead 2024-04-27 12:51:15 -04:00
diff.rs Use try_lock in diff_handle for Diff gutter (#11092) 2024-08-10 00:32:46 +09:00
git.rs cargo fmt 2024-05-07 15:15:52 -04:00
lib.rs cleanup: remove useless Git struct, using free functions instead 2024-04-27 12:51:15 -04:00
status.rs Changed file picker (#5645) 2024-03-31 17:36:28 -05:00