File tree 1 file changed +3
-5
lines changed
gitoxide-core/src/repository 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ mod entries {
91
91
fn visit_nontree ( & mut self , entry : & EntryRef < ' _ > ) -> Action {
92
92
let size = self
93
93
. repo
94
- . and_then ( |repo| repo. find_object ( entry. oid ) . map ( |o| o . data . len ( ) ) . ok ( ) ) ;
94
+ . and_then ( |repo| repo. find_header ( entry. oid ) . map ( |h| h . size ( ) ) . ok ( ) ) ;
95
95
if let Some ( out) = & mut self . out {
96
96
format_entry ( out, entry, self . path . as_bstr ( ) , size) . ok ( ) ;
97
97
}
@@ -163,9 +163,7 @@ pub fn entries(
163
163
& mut out,
164
164
& entry. inner ,
165
165
entry. inner . filename ,
166
- extended
167
- . then ( || entry. id ( ) . object ( ) . map ( |o| o. data . len ( ) ) )
168
- . transpose ( ) ?,
166
+ extended. then ( || entry. id ( ) . header ( ) . map ( |o| o. size ( ) ) ) . transpose ( ) ?,
169
167
) ?;
170
168
}
171
169
}
@@ -182,7 +180,7 @@ fn format_entry(
182
180
mut out : impl io:: Write ,
183
181
entry : & gix:: objs:: tree:: EntryRef < ' _ > ,
184
182
filename : & gix:: bstr:: BStr ,
185
- size : Option < usize > ,
183
+ size : Option < u64 > ,
186
184
) -> std:: io:: Result < ( ) > {
187
185
use gix:: objs:: tree:: EntryKind :: * ;
188
186
writeln ! (
You can’t perform that action at this time.
0 commit comments