File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,16 @@ sub do_dsf_stuff {
240
240
# ##############
241
241
# File rename #
242
242
# ##############
243
- } elsif ($line =~ / ^${ansi_color_regex} similarity index 100%/ ) {
243
+ } elsif ($line =~ / ^${ansi_color_regex} similarity index (\d +)%/ ) {
244
+ my $simil = $4 ;
245
+
246
+ # If it's a move with content change we ignore this and the next two lines
247
+ if ($simil != 100) {
248
+ shift (@$input );
249
+ shift (@$input );
250
+ next ;
251
+ }
252
+
244
253
my $next = shift (@$input );
245
254
my ($file1 ) = $next =~ / rename from (.+)/ ;
246
255
@@ -260,10 +269,6 @@ sub do_dsf_stuff {
260
269
261
270
$i += 3; # We've consumed three lines
262
271
next ;
263
- } elsif ($line =~ / ^${ansi_color_regex} similarity index/ ) {
264
- shift (@$input );
265
- shift (@$input );
266
- next ;
267
272
# ####################################
268
273
# Just a regular line, print it out #
269
274
# ####################################
You can’t perform that action at this time.
0 commit comments