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::{
11    refine_message_scope, resolve_scope, CommitAnalysis, CommitAnalysisForAI, CommitInfo,
12    CommitInfoForAI, FileDiffRef,
13};
14pub use diff_split::{split_by_file, split_file_by_hunk, FileDiff, HunkDiff};
15pub use remote::RemoteInfo;
16pub use repository::GitRepository;
17
18/// Number of hex characters to show in abbreviated commit hashes.
19pub const SHORT_HASH_LEN: usize = 8;
20
21/// Length of a full SHA-1 commit hash in hex characters.
22pub const FULL_HASH_LEN: usize = 40;