You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1006 B
33 lines
1006 B
//! Read-only git repository explorer library.
|
|
//!
|
|
//! This library provides a more Rustic interface for libgit2, built
|
|
//! on the `git2` bindings. If you want more low-level access to your
|
|
//! repository, consider using that library instead.
|
|
//!
|
|
//! supergit aims to make queries into a git repo as typed and easy as
|
|
//! possible. Start by creating a [`Repository`](), and enumerating
|
|
//! or fetching [`Branch`]()es that you are interested in.
|
|
//!
|
|
//! Unlike `libgit2`, this library can resolve reverse dependencies
|
|
//! between files, and their commit history. Some of these functions
|
|
//! are very computationally intensive, and will be marked with their
|
|
//! runtime cost.
|
|
|
|
mod branch;
|
|
pub use branch::{Branch, BranchIter, BranchCommit};
|
|
|
|
mod commit;
|
|
pub use commit::Commit;
|
|
|
|
mod diff;
|
|
pub use diff::Diff;
|
|
|
|
mod repo;
|
|
pub(crate) use repo::HashId;
|
|
pub use repo::Repository;
|
|
|
|
mod files;
|
|
pub use files::{File, FileTree};
|
|
|
|
use async_std::sync::{Arc, RwLock};
|
|
use std::sync::atomic::{AtomicUsize, Ordering};
|
|
|