line |
true |
false |
branch |
54
|
45 |
188 |
if ($line =~ /^--- (.*)/) { } |
|
45 |
143 |
elsif ($line =~ /^\+\+\+ (.*)/) { } |
|
47 |
96 |
elsif ($line =~ /^\@@ -(\d+)(?:,(\d+))? \+\d+(?:,\d+)? \@@/) { } |
65
|
3 |
44 |
if $file_a ne $file_b |
70
|
44 |
114 |
if (not defined $line or $line =~ /^[^ +\\-]/) |
76
|
17 |
27 |
defined $2 ? : |
85
|
10 |
34 |
if defined $line |
113
|
47 |
3 |
unless $summary =~ /^(?:fixup|squash)! (.*)/ |
115
|
0 |
3 |
if ($prefix =~ /^(?:(?:fixup|squash)! ){2}/) |
119
|
0 |
3 |
if (@matches > 1) { } |
|
0 |
3 |
elsif (@matches == 0) { } |
|
3 |
0 |
elsif (@matches == 1) { } |
136
|
0 |
44 |
if (grep {not defined $_;} $hunk, $blame, $summary_for, $strict) |
141
|
25 |
19 |
if ($args->{'strict'} == $CONTEXT) { } |
144
|
3 |
22 |
if (@topic_targets > 1) |
155
|
4 |
40 |
if ($strict and $upstream_is_blamed) { } |
|
0 |
40 |
elsif (@topic_targets > 1) { } |
|
5 |
35 |
elsif (@topic_targets == 0) { } |
156
|
0 |
4 |
if $VERBOSE |
159
|
0 |
0 |
if $VERBOSE |
162
|
0 |
5 |
if $VERBOSE |
179
|
0 |
25 |
if grep {not defined $_;} $hunk, $blame, $summary_for |
182
|
25 |
0 |
wantarray ? : |
196
|
0 |
22 |
if (grep {not defined $_;} $hunk, $blame, $summary_for, $strict) |
207
|
17 |
39 |
if (startswith($line, '-')) { } |
|
18 |
21 |
elsif (startswith($line, '+')) { } |
212
|
17 |
1 |
if ($di > 0 and defined $$blame{$bi - 1}) |
215
|
5 |
13 |
if (defined $blame->{$bi}) |
226
|
14 |
4 |
if ($is_surrounded or $strict < $SURROUNDED and $is_adjacent) |
235
|
22 |
0 |
wantarray ? : |
251
|
38 |
22 |
if ($first eq '-' or $first eq ' ') |
266
|
0 |
0 |
if (grep {not defined $_;} $fh, $hunk, $summary_for, $blame, $blame_indexes) |
274
|
0 |
0 |
defined $blame->{$bi} ? : |
276
|
0 |
0 |
defined $sha ? : |
278
|
0 |
0 |
if (startswith($line_r, '+')) |
282
|
0 |
0 |
if (defined $sha and not defined $summary_for->{$sha}) |
288
|
0 |
0 |
if (defined $blame->{$bi} and not startswith($line_r, '+')) |
314
|
1 |
43 |
if ($hunk->{'count'} == 0) |
324
|
0 |
43 |
unless open my $fh, '-|', @cmd |
326
|
70 |
602 |
if ($line =~ /^([0-9a-f]{40}) \d+ (\d+)/) |
329
|
70 |
602 |
if (startswith($line, "\t")) |
330
|
3 |
67 |
if (defined $alias_for->{$sha}) |
336
|
0 |
43 |
unless close $fh |
343
|
2 |
38 |
if (is_index_dirty()) |
346
|
0 |
40 |
unless open my $fh, '-|', @cmd |
348
|
0 |
40 |
unless close $fh |
349
|
0 |
40 |
wantarray ? : |
354
|
0 |
29 |
unless open my $fh, '|-', git_cmd(('apply', '--unidiff-zero', '--cached', '-')) |
363
|
0 |
29 |
unless close $fh |
364
|
0 |
29 |
unless system(git_cmd('commit', "--fixup=$sha")) == 0 |
369
|
0 |
40 |
unless open my $fh, '-|', git_cmd(('status', '--porcelain')) |
372
|
2 |
45 |
if ($line =~ /^[^?! ]/) |
377
|
0 |
40 |
unless close $fh |
387
|
0 |
40 |
if (grep {not defined $_;} $hunks, $blame_for, $summary_for, $strict) |
400
|
0 |
44 |
if ($sha and $VERBOSE) |
406
|
0 |
44 |
if ($VERBOSE > 1) |
415
|
9 |
35 |
unless $sha |
432
|
35 |
9 |
if (defined $sha_for->{$hunk}) |
445
|
0 |
35 |
if (defined $sha_for{$hunk}) |
464
|
6 |
34 |
if ($hunk_count == 0) { } |
|
7 |
27 |
elsif ($assigned_hunk_count == 0) { } |
|
2 |
25 |
elsif ($assigned_hunk_count < $hunk_count) { } |
|
25 |
0 |
elsif ($hunk_count == $assigned_hunk_count) { } |
488
|
0 |
40 |
unless $? == 0 |
502
|
0 |
40 |
unless &GetOptions('h', \$help, 'help', \$man, 'version', \$show_version, 'verbose|v+', \$VERBOSE, 'strict|s=i', \$strict, 'context|c=i', \$num_context_lines, 'dryrun|n', \$dryrun, 'gitopt|g=s', \@GIT_OPTIONS, 'exit-code', \$use_detailed_exit_codes) |
513
|
0 |
40 |
if ($help) |
517
|
0 |
40 |
if ($show_version) |
521
|
0 |
40 |
if ($man) |
525
|
0 |
40 |
unless @ARGV == 1 |
528
|
0 |
40 |
unless $? == 0 |
530
|
0 |
40 |
if ($num_context_lines < 0) |
534
|
0 |
40 |
if ($strict < 0) { } |
|
0 |
61 |
elsif ($strict > 0 and $num_context_lines == 0) { } |
543
|
0 |
40 |
unless $? == 0 |
544
|
0 |
40 |
unless chdir $toplevel |
558
|
0 |
40 |
if ($dryrun) |
559
|
0 |
0 |
if ($use_detailed_exit_codes) |
573
|
40 |
0 |
if ($use_detailed_exit_codes) |