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(
261261 . object ( ) ?
262262 . into_tree ( )
263263 . changes ( ) ?
264- . track_path ( )
265- . track_rewrites ( None )
264+ . options ( |options| {
265+ options. track_path ( ) . track_rewrites ( None ) ;
266+ } )
266267 . for_each_to_obtain_tree ( & commit. tree ( ) ?, |change| {
267- let is_file_change = match change. event {
268+ let is_file_change = match change {
268269 Change :: Addition { entry_mode, .. } | Change :: Modification { entry_mode, .. } => {
269270 entry_mode. is_blob ( )
270271 }
271272 Change :: Deletion { .. } | Change :: Rewrite { .. } => false ,
272273 } ;
273274 if is_file_change {
274- let path = change. location ;
275+ let path = change. location ( ) ;
275276 * change_map. entry ( path. to_owned ( ) ) . or_insert ( 0 ) += 1 ;
276277 }
277278
You can’t perform that action at this time.
0 commit comments