line |
true |
false |
branch |
41
|
35 |
146 |
if ($line =~ /^--- (.*)/) { } |
|
35 |
111 |
elsif ($line =~ /^\+\+\+ (.*)/) { } |
|
35 |
76 |
elsif ($line =~ /^\@@ -(\d+)(?:,(\d+))? \+\d+(?:,\d+)? \@@/) { } |
52
|
3 |
32 |
if $file_a ne $file_b |
57
|
32 |
78 |
if (not defined $line or $line =~ /^[^ +-\\]/) |
63
|
13 |
19 |
defined $2 ? : |
72
|
5 |
27 |
if defined $line |
96
|
37 |
3 |
unless $summary =~ /^(?:fixup|squash)! (.*)/ |
98
|
0 |
3 |
if ($prefix =~ /^(?:(?:fixup|squash)! ){2}/) |
102
|
0 |
3 |
if (@matches > 1) { } |
|
0 |
3 |
elsif (@matches == 0) { } |
|
3 |
0 |
elsif (@matches == 1) { } |
119
|
0 |
32 |
if (grep {not defined $_;} $hunk, $blame, $summary_for, $strict) |
124
|
13 |
19 |
if ($args->{'strict'} == $CONTEXT) { } |
127
|
1 |
12 |
if (@topic_targets > 1) |
138
|
4 |
28 |
if ($strict and $upstream_is_blamed) { } |
|
0 |
28 |
elsif (@topic_targets > 1) { } |
|
3 |
25 |
elsif (@topic_targets == 0) { } |
139
|
0 |
4 |
if $verbose |
142
|
0 |
0 |
if $verbose |
145
|
0 |
3 |
if $verbose |
148
|
0 |
25 |
if ($verbose) |
168
|
0 |
13 |
if grep {not defined $_;} $hunk, $blame, $summary_for |
171
|
13 |
0 |
wantarray ? : |
185
|
0 |
20 |
if (grep {not defined $_;} $hunk, $blame, $summary_for, $strict) |
196
|
15 |
31 |
if (startswith($line, '-')) { } |
|
16 |
15 |
elsif (startswith($line, '+')) { } |
201
|
15 |
1 |
if ($di > 0 and defined $$blame{$bi - 1}) |
204
|
4 |
12 |
if (defined $blame->{$bi}) |
215
|
13 |
3 |
if ($is_surrounded or $strict < $SURROUNDED and $is_adjacent) |
224
|
20 |
0 |
wantarray ? : |
240
|
30 |
20 |
if ($first eq '-' or $first eq ' ') |
255
|
0 |
0 |
if (grep {not defined $_;} $fh, $hunk, $summary_for, $blame, $blame_indexes) |
263
|
0 |
0 |
defined $blame->{$bi} ? : |
265
|
0 |
0 |
defined $sha ? : |
267
|
0 |
0 |
if (startswith($line_r, '+')) |
271
|
0 |
0 |
if (defined $sha and not defined $summary_for->{$sha}) |
277
|
0 |
0 |
if (defined $blame->{$bi} and not startswith($line_r, '+')) |
303
|
1 |
31 |
if ($hunk->{'count'} == 0) |
313
|
0 |
31 |
unless open my $fh, '-|', @cmd |
315
|
46 |
436 |
if ($line =~ /^([0-9a-f]{40}) \d+ (\d+)/) |
318
|
46 |
436 |
if (startswith($line, "\t")) |
319
|
3 |
43 |
if (defined $alias_for->{$sha}) |
325
|
0 |
31 |
unless close $fh |
332
|
0 |
33 |
unless open my $fh, '-|', @cmd |
334
|
0 |
33 |
unless close $fh |
335
|
0 |
33 |
wantarray ? : |
340
|
0 |
20 |
unless open my $fh, '|-', 'git apply --unidiff-zero --cached -' |
349
|
0 |
20 |
unless close $fh |
350
|
0 |
20 |
unless system('git', 'commit', "--fixup=$sha") == 0 |
355
|
0 |
33 |
unless open my $fh, '-|', 'git status --porcelain' |
358
|
0 |
38 |
if ($line =~ /^[^?! ]/) |
363
|
0 |
33 |
unless close $fh |
373
|
0 |
33 |
if (grep {not defined $_;} $hunks, $blame_for, $summary_for, $strict) |
386
|
0 |
32 |
if ($verbose > 1) |
395
|
7 |
25 |
unless $sha |
408
|
0 |
33 |
unless &GetOptions('h', \$help, 'help', \$man, 'version', \$show_version, 'verbose|v+', \$verbose, 'strict|s=i', \$strict, 'context|c=i', \$num_context_lines) |
416
|
0 |
33 |
if ($help) |
420
|
0 |
33 |
if ($show_version) |
424
|
0 |
33 |
if ($man) |
428
|
0 |
33 |
unless @ARGV == 1 |
431
|
0 |
33 |
unless $? == 0 |
433
|
0 |
33 |
if ($num_context_lines < 0) |
437
|
0 |
33 |
if ($strict < 0) { } |
|
0 |
47 |
elsif ($strict > 0 and $num_context_lines == 0) { } |
446
|
0 |
33 |
unless $? == 0 |
447
|
0 |
33 |
unless chdir $toplevel |
449
|
0 |
33 |
if (is_index_dirty()) |