gix_ref/store/file/log/
mod.rs

1use gix_object::bstr::BStr;
2
3pub use super::loose::reflog::{create_or_update, Error};
4
5///
6pub mod iter;
7mod line;
8
9/// A parsed ref log line.
10#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
11#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
12pub struct LineRef<'a> {
13    /// The previous object id in hexadecimal. Use [`LineRef::previous_oid()`] to get a more usable form.
14    pub previous_oid: &'a BStr,
15    /// The new object id in hexadecimal. Use [`LineRef::new_oid()`] to get a more usable form.
16    pub new_oid: &'a BStr,
17    /// The signature of the currently configured committer.
18    #[cfg_attr(feature = "serde", serde(borrow))]
19    pub signature: gix_actor::SignatureRef<'a>,
20    /// The message providing details about the operation performed in this log line.
21    pub message: &'a BStr,
22}