use kernel::{Address, FileChange};
use serde::{Deserialize, Serialize};
use super::CommitAnswer;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
pub struct Drift {
pub ahead: u64,
pub behind: u64,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
pub struct GitStatusAnswer {
pub building: Address,
pub branch: Option<String>,
pub drift: Option<Drift>,
pub files: Vec<FileChange>,
pub checkpoint: Option<CommitAnswer>,
}