Skip to main content

omni_dev/
git.rs

1//! Git operations and repository management.
2
3pub mod amendment;
4pub mod commit;
5pub mod diff_split;
6pub mod remote;
7pub mod repository;
8
9pub use amendment::AmendmentHandler;
10pub use commit::{CommitAnalysis, CommitAnalysisForAI, CommitInfo, CommitInfoForAI, FileDiffRef};
11pub use diff_split::{split_by_file, split_file_by_hunk, FileDiff, HunkDiff};
12pub use remote::RemoteInfo;
13pub use repository::GitRepository;
14
15/// Number of hex characters to show in abbreviated commit hashes.
16pub const SHORT_HASH_LEN: usize = 8;
17
18/// Length of a full SHA-1 commit hash in hex characters.
19pub const FULL_HASH_LEN: usize = 40;