ThreadLocalRepo, a convenient way to share a
git2::Repository object does not support sharing among threads without some form
tlrepo::ThreadLocalRepo provides a convenient way to reopen the same
repository on each thread, caching the opened repository thread-locally for reuse.
You can create a
ThreadLocalRepo by calling
ThreadLocalRepo::new, or by using the extension
tlrepo::RepositoryExt to call
.thread_local() on an existing
An object providing a thread-local copy of a
git2::Repository for each thread.
Extension trait for
git2::Repository, to create a
ThreadLocalRepo with the path to the