File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
gix-status/src/index_as_worktree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -148,18 +148,14 @@ impl CompareBlobs for HashEq {
148
148
stream. read_to_end ( buf) ?;
149
149
gix_object:: compute_hash ( entry. id . kind ( ) , gix_object:: Kind :: Blob , buf)
150
150
}
151
- Some ( len) => {
152
- let header = gix_object:: encode:: loose_header ( gix_object:: Kind :: Blob , len) ;
153
- let mut hasher = gix_features:: hash:: hasher ( entry. id . kind ( ) ) ;
154
- hasher. update ( & header) ;
155
- gix_features:: hash:: bytes_with_hasher (
156
- & mut stream,
157
- len,
158
- hasher,
159
- & mut gix_features:: progress:: Discard ,
160
- & AtomicBool :: default ( ) ,
161
- ) ?
162
- }
151
+ Some ( len) => gix_object:: compute_stream_hash (
152
+ entry. id . kind ( ) ,
153
+ gix_object:: Kind :: Blob ,
154
+ & mut stream,
155
+ len,
156
+ & mut gix_features:: progress:: Discard ,
157
+ & AtomicBool :: default ( ) ,
158
+ ) ?,
163
159
} ;
164
160
Ok ( ( entry. id != file_hash) . then_some ( file_hash) )
165
161
}
You can’t perform that action at this time.
0 commit comments