git_ref/store/file/log/
mod.rs

1use git_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)]
11#[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
12#[non_exhaustive]
13pub struct LineRef<'a> {
14    /// The previous object id in hexadecimal. Use [`LineRef::previous_oid()`] to get a more usable form.
15    pub previous_oid: &'a BStr,
16    /// The new object id in hexadecimal. Use [`LineRef::new_oid()`] to get a more usable form.
17    pub new_oid: &'a BStr,
18    /// The signature of the currently configured committer.
19    #[cfg_attr(feature = "serde1", serde(borrow))]
20    pub signature: git_actor::SignatureRef<'a>,
21    /// The message providing details about the operation performed in this log line.
22    pub message: &'a BStr,
23}