summaryrefslogtreecommitdiffstats
path: root/vendor/gix-ref/src/log.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:35 +0000
commit7e5d7eea9c580ef4b41a765bde624af431942b96 (patch)
tree2c0d9ca12878fc4525650aa4e54d77a81a07cc09 /vendor/gix-ref/src/log.rs
parentAdding debian version 1.70.0+dfsg1-9. (diff)
downloadrustc-7e5d7eea9c580ef4b41a765bde624af431942b96.tar.xz
rustc-7e5d7eea9c580ef4b41a765bde624af431942b96.zip
Merging upstream version 1.70.0+dfsg2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix-ref/src/log.rs')
-rw-r--r--vendor/gix-ref/src/log.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/gix-ref/src/log.rs b/vendor/gix-ref/src/log.rs
new file mode 100644
index 000000000..42ce97aa9
--- /dev/null
+++ b/vendor/gix-ref/src/log.rs
@@ -0,0 +1,16 @@
+use gix_hash::ObjectId;
+use gix_object::bstr::BString;
+
+/// A parsed ref log line that can be changed
+#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
+#[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
+pub struct Line {
+ /// The previous object id. Can be a null-sha to indicate this is a line for a new ref.
+ pub previous_oid: ObjectId,
+ /// The new object id. Can be a null-sha to indicate this ref is being deleted.
+ pub new_oid: ObjectId,
+ /// The signature of the currently configured committer.
+ pub signature: gix_actor::Signature,
+ /// The message providing details about the operation performed in this log line.
+ pub message: BString,
+}