Skip to main content

grit_lib/
lib.rs

1//! Gust library — core Git-compatible engine.
2//!
3//! # Architecture
4//!
5//! All Git-compatible logic lives here; the `grit` binary is a thin CLI shim
6//! that parses arguments and delegates to types exposed from this crate.
7//!
8//! ## Modules
9//!
10//! - [`error`] — shared error types using `thiserror`
11//! - [`objects`] — object ID, object kinds, and in-memory representations
12//! - [`odb`] — loose object store (read/write zlib-compressed objects)
13//! - [`repo`] — repository discovery and handle
14//! - [`index`] — Git index (staging area) read/write
15//! - [`ignore`] — ignore/exclude pattern matching for check-ignore
16//! - [`refs`] — reference storage (files backend)
17
18pub mod attributes;
19pub mod check_ref_format;
20pub mod config;
21pub mod crlf;
22pub mod delta_encode;
23pub mod diff;
24pub mod error;
25pub mod fmt_merge_msg;
26pub mod git_date;
27pub mod hooks;
28pub mod ignore;
29pub mod index;
30pub mod ls_remote;
31pub mod merge_base;
32pub mod merge_file;
33pub mod midx;
34pub mod name_rev;
35pub mod objects;
36pub mod odb;
37pub mod pack;
38pub mod parse_options_test_tool;
39pub mod patch_ids;
40pub mod prune_packed;
41pub mod reflog;
42pub mod refs;
43pub mod reftable;
44pub mod repo;
45pub mod rev_list;
46pub mod rev_parse;
47pub mod state;
48pub mod stripspace;
49pub mod tree_path_follow;
50#[cfg(unix)]
51pub mod unix_process;
52pub mod unpack_objects;
53pub mod userdiff;
54pub mod wildmatch;
55pub mod write_tree;