//! Serializable types for the reference domain.

use serde::{Deserialize, Serialize};

use crate::commit::types::CommitOid;

/// A lightweight ref entry for listing.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RefInfo {
    pub name: String,
    pub oid: Option<CommitOid>,
    pub target: Option<CommitOid>,
    pub is_symbolic: bool,
    pub is_branch: bool,
    pub is_remote: bool,
    pub is_tag: bool,
    pub is_note: bool,
}
