You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/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>
4 months ago
..
diff Use `try_lock` in `diff_handle` for Diff gutter (#11092) 4 months ago
git cleanup: remove useless Git struct, using free functions instead 7 months ago
diff.rs Use `try_lock` in `diff_handle` for Diff gutter (#11092) 4 months ago
git.rs `cargo fmt` 7 months ago
lib.rs cleanup: remove useless Git struct, using free functions instead 7 months ago
status.rs Changed file picker (#5645) 8 months ago