File tree 1 file changed +4
-5
lines changed
gitoxide-core/src/query/engine
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use anyhow::{anyhow, bail};
9
9
use gix:: objs:: find:: Error ;
10
10
use gix:: {
11
11
bstr:: { BStr , BString , ByteSlice } ,
12
+ diff:: rewrites:: CopySource ,
12
13
features:: progress,
13
- object:: tree:: diff:: rewrites:: CopySource ,
14
14
parallel:: { InOrderIter , SequenceId } ,
15
15
prelude:: ObjectIdExt ,
16
16
Count , Progress ,
@@ -139,11 +139,10 @@ pub fn update(
139
139
} ) ;
140
140
141
141
let rewrites = {
142
- let mut r =
143
- gix:: object:: tree:: diff:: Rewrites :: try_from_config ( & repo. config_snapshot ( ) , true ) ?. unwrap_or_default ( ) ;
144
- r. copies = Some ( gix:: object:: tree:: diff:: rewrites:: Copies {
142
+ let mut r = gix:: diff:: new_rewrites ( & repo. config_snapshot ( ) , true ) ?. unwrap_or_default ( ) ;
143
+ r. copies = Some ( gix:: diff:: rewrites:: Copies {
145
144
source : if find_copies_harder {
146
- CopySource :: FromSetOfModifiedFilesAndSourceTree
145
+ CopySource :: FromSetOfModifiedFilesAndAllSources
147
146
} else {
148
147
CopySource :: FromSetOfModifiedFiles
149
148
} ,
You can’t perform that action at this time.
0 commit comments