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
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -92,13 +92,19 @@ pub struct CommitRef<'a> {
92
92
///
93
93
/// Use the [`author()`](CommitRef::author()) method to received a trimmed version of it.
94
94
pubauthor: gix_actor::SignatureRef<'a>,
95
+
/// The raw author header as encountered during parsing.
96
+
///
97
+
/// This is used to preserve otherwise invalid identities during serialization.
98
+
pubauthor_raw:&'aBStr,
95
99
/// Who committed this commit. Name and email might contain whitespace and are not trimmed to ensure round-tripping.
96
100
///
97
101
/// Use the [`committer()`](CommitRef::committer()) method to received a trimmed version of it.
98
102
///
99
103
/// This may be different from the `author` in case the author couldn't write to the repository themselves and
100
104
/// is commonly encountered with contributed commits.
101
105
pubcommitter: gix_actor::SignatureRef<'a>,
106
+
/// The raw committer header as encountered during parsing.
107
+
pubcommitter_raw:&'aBStr,
102
108
/// The name of the message encoding, otherwise [UTF-8 should be assumed](https://github.com/git/git/blob/e67fbf927dfdf13d0b21dc6ea15dc3c7ef448ea0/commit.c#L1493:L1493).
103
109
pubencoding:Option<&'aBStr>,
104
110
/// The commit message documenting the change.
@@ -152,6 +158,8 @@ pub struct TagRef<'a> {
152
158
pubname:&'aBStr,
153
159
/// The author of the tag.
154
160
pubtagger:Option<gix_actor::SignatureRef<'a>>,
161
+
/// The raw tagger header as encountered during parsing.
162
+
pubtagger_raw:Option<&'aBStr>,
155
163
/// The message describing this release.
156
164
pubmessage:&'aBStr,
157
165
/// A cryptographic signature over the entire content of the serialized tag object thus far.
0 commit comments