mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-30 16:30:49 +08:00
The View type is specific to Heartwood and was preemptively defined when in fact it will not be used. YAGNI. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
21 lines
768 B
Rust
21 lines
768 B
Rust
//! The `source` module provides a layer on top of the [`crate::git`]
|
|
//! functionality.
|
|
//!
|
|
//! It provides data types of [`Blob`]s, [`Tree`]s, and [`Commit`]s
|
|
//! (see [git objects][git-objects]). These types are analgous to
|
|
//! [`crate::file_system::File`], [`crate::file_system::Directory`], and
|
|
//! [`crate::git::Commit`]. However, they provide extra metadata and
|
|
//! can be serialized to serve to other applications. For example,
|
|
//! they could be used in an HTTP server for viewing a Git repository.
|
|
//!
|
|
//! [git-objects]: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
|
|
|
|
pub mod object;
|
|
pub use object::{blob, tree, Blob, BlobContent, Tree, TreeEntry};
|
|
|
|
pub mod commit;
|
|
pub use commit::{commit, commits, Commit};
|
|
|
|
mod person;
|
|
pub use person::Person;
|