@@ -86,7 +86,7 @@ impl<'repo> Commit<'repo> {
8686 /// # Ok(()) }
8787 /// ```
8888 pub fn message_raw ( & self ) -> Result < & ' _ BStr , gix_object:: decode:: Error > {
89- gix_object:: CommitRefIter :: from_bytes ( & self . data ) . message ( )
89+ gix_object:: CommitRefIter :: from_bytes ( & self . data , self . id . kind ( ) ) . message ( )
9090 }
9191 /// Obtain the message by using intricate knowledge about the encoding, which is fastest and
9292 /// can't fail at the expense of error handling.
@@ -114,24 +114,24 @@ impl<'repo> Commit<'repo> {
114114 /// used for successive calls to string-ish information to avoid decoding the object
115115 /// more than once.
116116 pub fn decode ( & self ) -> Result < gix_object:: CommitRef < ' _ > , gix_object:: decode:: Error > {
117- gix_object:: CommitRef :: from_bytes ( & self . data )
117+ gix_object:: CommitRef :: from_bytes ( & self . data , self . id . kind ( ) )
118118 }
119119
120120 /// Return an iterator over tokens, representing this commit piece by piece.
121121 pub fn iter ( & self ) -> gix_object:: CommitRefIter < ' _ > {
122- gix_object:: CommitRefIter :: from_bytes ( & self . data )
122+ gix_object:: CommitRefIter :: from_bytes ( & self . data , self . id . kind ( ) )
123123 }
124124
125125 /// Return the commits author, with surrounding whitespace trimmed.
126126 pub fn author ( & self ) -> Result < gix_actor:: SignatureRef < ' _ > , gix_object:: decode:: Error > {
127- gix_object:: CommitRefIter :: from_bytes ( & self . data )
127+ gix_object:: CommitRefIter :: from_bytes ( & self . data , self . id . kind ( ) )
128128 . author ( )
129129 . map ( |s| s. trim ( ) )
130130 }
131131
132132 /// Return the commits committer. with surrounding whitespace trimmed.
133133 pub fn committer ( & self ) -> Result < gix_actor:: SignatureRef < ' _ > , gix_object:: decode:: Error > {
134- gix_object:: CommitRefIter :: from_bytes ( & self . data )
134+ gix_object:: CommitRefIter :: from_bytes ( & self . data , self . id . kind ( ) )
135135 . committer ( )
136136 . map ( |s| s. trim ( ) )
137137 }
@@ -153,7 +153,7 @@ impl<'repo> Commit<'repo> {
153153 pub fn parent_ids ( & self ) -> impl Iterator < Item = crate :: Id < ' repo > > + ' _ {
154154 use crate :: ext:: ObjectIdExt ;
155155 let repo = self . repo ;
156- gix_object:: CommitRefIter :: from_bytes ( & self . data )
156+ gix_object:: CommitRefIter :: from_bytes ( & self . data , self . id . kind ( ) )
157157 . parent_ids ( )
158158 . map ( move |id| id. attach ( repo) )
159159 }
@@ -181,7 +181,7 @@ impl<'repo> Commit<'repo> {
181181
182182 /// Parse the commit and return the tree id it points to.
183183 pub fn tree_id ( & self ) -> Result < crate :: Id < ' repo > , gix_object:: decode:: Error > {
184- gix_object:: CommitRefIter :: from_bytes ( & self . data )
184+ gix_object:: CommitRefIter :: from_bytes ( & self . data , self . id . kind ( ) )
185185 . tree_id ( )
186186 . map ( |id| crate :: Id :: from_id ( id, self . repo ) )
187187 }
@@ -217,7 +217,7 @@ impl<'repo> Commit<'repo> {
217217 & self ,
218218 ) -> Result < Option < ( std:: borrow:: Cow < ' _ , BStr > , gix_object:: commit:: SignedData < ' _ > ) > , gix_object:: decode:: Error >
219219 {
220- gix_object:: CommitRefIter :: signature ( & self . data )
220+ gix_object:: CommitRefIter :: signature ( & self . data , self . id . kind ( ) )
221221 }
222222}
223223
0 commit comments