You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gix-object/src/lib.rs
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -88,17 +88,16 @@ pub struct CommitRef<'a> {
88
88
pubtree:&'aBStr,
89
89
/// HEX hash of each parent commit. Empty for first commit in repository.
90
90
pubparents:SmallVec<[&'aBStr;1]>,
91
-
/// Who wrote this commit. Name and email might contain whitespace and are not trimmed to ensure round-tripping.
91
+
/// The raw author header value as encountered during parsing.
92
92
///
93
-
/// Use the [`author()`](CommitRef::author()) method to received a trimmed version of it.
94
-
pubauthor: gix_actor::SignatureRef<'a>,
95
-
/// Who committed this commit. Name and email might contain whitespace and are not trimmed to ensure round-tripping.
96
-
///
97
-
/// Use the [`committer()`](CommitRef::committer()) method to received a trimmed version of it.
93
+
/// Use the [`author()`](CommitRef::author()) method to obtain a parsed version of it.
94
+
#[cfg_attr(feature = "serde", serde(borrow))]
95
+
pubauthor:&'aBStr,
96
+
/// The raw committer header value as encountered during parsing.
98
97
///
99
-
/// This may be different from the `author` in case the author couldn't write to the repository themselves and
100
-
/// is commonly encountered with contributed commits.
101
-
pubcommitter:gix_actor::SignatureRef<'a>,
98
+
/// Use the [`committer()`](CommitRef::committer()) method to obtain a parsed version of it.
99
+
#[cfg_attr(feature = "serde", serde(borrow))]
100
+
pubcommitter:&'aBStr,
102
101
/// The name of the message encoding, otherwise [UTF-8 should be assumed](https://github.com/git/git/blob/e67fbf927dfdf13d0b21dc6ea15dc3c7ef448ea0/commit.c#L1493:L1493).
103
102
pubencoding:Option<&'aBStr>,
104
103
/// The commit message documenting the change.
@@ -150,8 +149,11 @@ pub struct TagRef<'a> {
150
149
pubtarget_kind:Kind,
151
150
/// The name of the tag, e.g. "v1.0".
152
151
pubname:&'aBStr,
153
-
/// The author of the tag.
154
-
pubtagger:Option<gix_actor::SignatureRef<'a>>,
152
+
/// The raw tagger header value as encountered during parsing.
153
+
///
154
+
/// Use the [`tagger()`](TagRef::tagger()) method to obtain a parsed version of it.
155
+
#[cfg_attr(feature = "serde", serde(borrow))]
156
+
pubtagger:Option<&'aBStr>,
155
157
/// The message describing this release.
156
158
pubmessage:&'aBStr,
157
159
/// A cryptographic signature over the entire content of the serialized tag object thus far.
0 commit comments