#git #context #asyncgit

asyncgit

allow using git2 in a asynchronous context

54 releases

0.27.0 Jan 13, 2025
0.26.3 Jun 2, 2024
0.26.2 May 16, 2024
0.25.1 Mar 22, 2024
0.1.2 Mar 27, 2020

#345 in Concurrency

Download history 116/week @ 2025-01-06 653/week @ 2025-01-13 277/week @ 2025-01-20 193/week @ 2025-01-27 208/week @ 2025-02-03 164/week @ 2025-02-10 224/week @ 2025-02-17 183/week @ 2025-02-24 207/week @ 2025-03-03 180/week @ 2025-03-10 155/week @ 2025-03-17 168/week @ 2025-03-24 194/week @ 2025-03-31 190/week @ 2025-04-07 172/week @ 2025-04-14 126/week @ 2025-04-21

700 downloads per month
Used in gitui

MIT license

360KB
12K SLoC

asyncgit

allow using git2 in an asynchronous context

This crate is designed as part of the gitui project.

asyncgit provides the primary interface to interact with git repositories. It is split into the main module and a sync part. The latter provides convenience wrapper for typical usage patterns against git repositories.

The primary goal however is to allow putting certain (potentially) long running git2 calls onto a thread pool.crossbeam-channel is then used to wait for a notification confirming the result.

In gitui this allows the main-thread and therefore the ui to stay responsive.

Dependencies

~36–53MB
~894K SLoC