File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
gitoxide-core/src/query/engine Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,12 @@ pub fn update(
139139 } ) ;
140140
141141 let rewrites = {
142- let mut r = gix:: diff:: new_rewrites ( & repo. config_snapshot ( ) , true ) ?. unwrap_or_default ( ) ;
142+ // These are either configured, or we set them to the default. There is no turning them off.
143+ let ( r, was_configured) = gix:: diff:: new_rewrites ( & repo. config_snapshot ( ) , true ) ?;
144+ if was_configured && r. is_none ( ) {
145+ gix:: trace:: warn!( "Rename tracking is disabled by configuration, but we enable it using the default" ) ;
146+ }
147+ let mut r = r. unwrap_or_default ( ) ;
143148 r. copies = Some ( gix:: diff:: rewrites:: Copies {
144149 source : if find_copies_harder {
145150 CopySource :: FromSetOfModifiedFilesAndAllSources
You can’t perform that action at this time.
0 commit comments