gix_ref/log.rs
1use gix_hash::ObjectId;
2use gix_object::bstr::BString;
3
4/// A parsed ref log line that can be changed
5#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
6#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
7pub struct Line {
8 /// The previous object id. Can be a null-sha to indicate this is a line for a new ref.
9 pub previous_oid: ObjectId,
10 /// The new object id. Can be a null-sha to indicate this ref is being deleted.
11 pub new_oid: ObjectId,
12 /// The signature of the currently configured committer.
13 pub signature: gix_actor::Signature,
14 /// The message providing details about the operation performed in this log line.
15 pub message: BString,
16}