Skip to main content

commit_wizard/engine/models/
git.rs

1#[derive(Debug, Clone)]
2pub struct CommitSummary {
3    pub hash: String,
4    /// First line of the commit message
5    pub summary: String,
6    /// Full commit message including body and footer (None if not fetched)
7    pub full_message: Option<String>,
8}
9
10#[derive(Debug, Clone, PartialEq, Eq)]
11pub enum FileStatus {
12    Modified,
13    Added,
14    Deleted,
15    Renamed { old: String, new: String },
16    TypeChange,
17    Untracked,
18    Unknown,
19}
20
21#[derive(Debug, Clone)]
22pub struct Change {
23    pub path: String,
24    pub staged: bool,
25    pub status: FileStatus,
26}