File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -261,17 +261,18 @@ fn compute_diff_with_parent(
261
261
. object ( ) ?
262
262
. into_tree ( )
263
263
. changes ( ) ?
264
- . track_path ( )
265
- . track_rewrites ( None )
264
+ . options ( |options| {
265
+ options. track_path ( ) . track_rewrites ( None ) ;
266
+ } )
266
267
. for_each_to_obtain_tree ( & commit. tree ( ) ?, |change| {
267
- let is_file_change = match change. event {
268
+ let is_file_change = match change {
268
269
Change :: Addition { entry_mode, .. } | Change :: Modification { entry_mode, .. } => {
269
270
entry_mode. is_blob ( )
270
271
}
271
272
Change :: Deletion { .. } | Change :: Rewrite { .. } => false ,
272
273
} ;
273
274
if is_file_change {
274
- let path = change. location ;
275
+ let path = change. location ( ) ;
275
276
* change_map. entry ( path. to_owned ( ) ) . or_insert ( 0 ) += 1 ;
276
277
}
277
278
You can’t perform that action at this time.
0 commit comments