| line |
true |
false |
branch |
|
176
|
0 |
0 |
if (defined $args[0]) |
|
177
|
0 |
0 |
if ($#args % 2 != 1) { } |
|
179
|
0 |
0 |
unless $#args == 0 |
|
186
|
0 |
0 |
unless (defined $opts{'Repository'} or defined $opts{'WorkingCopy'} or defined $opts{'Directory'}) |
|
191
|
0 |
0 |
if (defined $opts{'Directory'}) |
|
192
|
0 |
0 |
unless -d $opts{'Directory'} |
|
203
|
0 |
0 |
if ($dir) { } |
|
204
|
0 |
0 |
unless $dir =~ m[^/] |
|
210
|
0 |
0 |
if ($prefix) |
|
211
|
0 |
0 |
if (substr($dir, -length($prefix)) ne $prefix) |
|
223
|
0 |
0 |
unless (-d "$dir/refs" and -d "$dir/objects" and -e "$dir/HEAD") |
|
284
|
0 |
0 |
if (not defined wantarray) { } |
|
|
0 |
0 |
elsif (not wantarray) { } |
|
330
|
0 |
0 |
if defined $line |
|
418
|
0 |
0 |
if ($self) |
|
424
|
0 |
0 |
if $cwd_save |
|
465
|
0 |
0 |
if ($? >> 8) |
|
490
|
0 |
0 |
if (not defined $pid) { } |
|
|
0 |
0 |
elsif ($pid == 0) { } |
|
495
|
0 |
0 |
if (waitpid($pid, 0) > 0 and $? >> 8 != 0) |
|
568
|
0 |
0 |
if (exists $ENV{'GIT_ASKPASS'}) |
|
571
|
0 |
0 |
if (not defined $ret and exists $ENV{'SSH_ASKPASS'}) |
|
574
|
0 |
0 |
unless (defined $ret) |
|
577
|
0 |
0 |
if (defined $isPassword and $isPassword) { } |
|
582
|
0 |
0 |
if $key =~ /[\012\015]/ |
|
597
|
0 |
0 |
unless length $askpass |
|
600
|
0 |
0 |
unless open my $fh, '-|', $askpass, $prompt |
|
646
|
0 |
0 |
unless $self->wc_path |
|
649
|
0 |
0 |
unless -d $self->wc_path . '/' . $subdir |
|
685
|
0 |
0 |
if (not defined $val) { } |
|
726
|
0 |
0 |
$$opts{'kind'} ? : |
|
727
|
0 |
0 |
if $self |
|
728
|
0 |
0 |
if (wantarray) { } |
|
735
|
0 |
0 |
if ($E->value == 1) { } |
|
753
|
0 |
0 |
-t STDOUT ? : |
|
773
|
0 |
0 |
unless (defined $color) |
|
802
|
0 |
0 |
if (ref $groups eq 'ARRAY') |
|
804
|
0 |
0 |
if ($_ eq 'heads') { } |
|
|
0 |
0 |
elsif ($_ eq 'tags') { } |
|
815
|
0 |
0 |
if (ref $refglobs eq 'ARRAY') |
|
819
|
0 |
0 |
$self ? : |
|
860
|
0 |
0 |
if (lc $type eq 'committer' or lc $type eq 'author') { } |
|
862
|
0 |
0 |
if $self |
|
867
|
0 |
0 |
if (wantarray) { } |
|
876
|
0 |
0 |
$self ? : |
|
|
0 |
0 |
if $#ident == 0 |
|
913
|
0 |
0 |
if $filename =~ /[\r\n]/ |
|
918
|
0 |
0 |
unless (print $out $filename, "\n") |
|
924
|
0 |
0 |
unless (defined $hash) |
|
935
|
0 |
0 |
if defined $$self{'hash_object_pid'} |
|
945
|
0 |
0 |
unless defined $$self{'hash_object_pid'} |
|
966
|
0 |
0 |
unless (print $out $sha1, "\n") |
|
972
|
0 |
0 |
if ($description =~ / missing$/) |
|
977
|
0 |
0 |
unless ($description =~ /^[0-9a-fA-F]{40} \S+ (\d+)$/) |
|
988
|
0 |
0 |
unless $bytesLeft |
|
990
|
0 |
0 |
$bytesLeft < 1024 ? : |
|
992
|
0 |
0 |
unless (defined $read) |
|
996
|
0 |
0 |
unless (print $fh $blob) |
|
1006
|
0 |
0 |
unless (defined $read) |
|
1010
|
0 |
0 |
unless ($read == 1 and $newline eq "\n") |
|
1021
|
0 |
0 |
if defined $$self{'cat_blob_pid'} |
|
1031
|
0 |
0 |
unless defined $$self{'cat_blob_pid'} |
|
1054
|
0 |
0 |
if ($_ eq '') { } |
|
|
0 |
0 |
elsif (not /^([^=]+)=(.*)$/) { } |
|
1084
|
0 |
0 |
if (not defined $key && length $key) { } |
|
|
0 |
0 |
elsif ($key =~ /[=\n\0]/) { } |
|
|
0 |
0 |
elsif (defined $value and $value =~ /[\n\0]/) { } |
|
1093
|
0 |
0 |
if $a eq 'url' |
|
1096
|
0 |
0 |
if $b eq 'url' |
|
1099
|
0 |
0 |
if (defined $$credential{$key}) |
|
1113
|
0 |
0 |
if ($op eq 'fill') |
|
1116
|
0 |
0 |
if (<$reader>) |
|
1178
|
0 |
0 |
if ('CODE' eq ref $op_or_code) { } |
|
1181
|
0 |
0 |
if (defined $ret) |
|
1182
|
0 |
0 |
$ret ? : |
|
1248
|
0 |
0 |
if defined $$temp_fd and $$temp_fd->opened |
|
1273
|
0 |
0 |
if (exists $TEMP_FILEMAP{$temp_fd}) |
|
1276
|
0 |
0 |
unless ($TEMP_FILES{$temp_fd}{'locked'}) |
|
1280
|
0 |
0 |
if $trunc and $temp_fd->opened |
|
1292
|
0 |
0 |
if (defined $$temp_fd and $$temp_fd->opened) { } |
|
1293
|
0 |
0 |
if ($TEMP_FILES{$$temp_fd}{'locked'}) |
|
1298
|
0 |
0 |
if (defined $$temp_fd) |
|
1306
|
0 |
0 |
if (defined $self) |
|
1310
|
0 |
0 |
unless ($$temp_fd, $fname) = File::Temp::tempfile('Git_XXXXXX', 'UNLINK', 1, 'DIR', $tmpdir) |
|
1323
|
0 |
0 |
if $@ |
|
1335
|
0 |
0 |
unless truncate $temp_fd, 0 |
|
1337
|
0 |
0 |
unless sysseek $temp_fd, 0, 0 and seek $temp_fd, 0, 0 |
|
1339
|
0 |
0 |
unless sysseek($temp_fd, 0, 1) == 0 and tell $temp_fd == 0 |
|
1354
|
0 |
0 |
if (exists $TEMP_FILEMAP{$temp_fd}) |
|
1361
|
0 |
1 |
if %TEMP_FILEMAP |
|
1426
|
0 |
0 |
unless defined $ref |
|
1427
|
0 |
0 |
if (ref $ref eq 'ARRAY') { } |
|
1457
|
0 |
0 |
if ($array) { } |
|
1470
|
0 |
0 |
if $err |
|
1471
|
0 |
0 |
$array ? : |
|
1492
|
0 |
0 |
UNIVERSAL::isa($_[0], 'Git') ? : |
|
1498
|
0 |
0 |
unless $cmd =~ /^[a-z0-9A-Z_-]+$/ |
|
1506
|
0 |
0 |
if (ref $p[0]) { } |
|
1508
|
0 |
0 |
ref $p[0] ? : |
|
1515
|
0 |
0 |
if ($^O eq 'MSWin32') { } |
|
1519
|
0 |
0 |
unless $direction eq '-|' |
|
1531
|
0 |
0 |
if (not defined $pid) { } |
|
|
0 |
0 |
elsif ($pid == 0) { } |
|
1534
|
0 |
0 |
if ($opts{'STDERR'}) { } |
|
|
0 |
0 |
elsif (defined $opts{'STDERR'}) { } |
|
1535
|
0 |
0 |
unless open STDERR, '>&', $opts{'STDERR'} |
|
1538
|
0 |
0 |
unless open STDERR, '>', '/dev/null' |
|
1544
|
0 |
0 |
wantarray ? : |
|
1559
|
0 |
0 |
if ($self) |
|
1560
|
0 |
0 |
if $self->repo_path |
|
1561
|
0 |
0 |
if $self->repo_path and $self->wc_path |
|
1563
|
0 |
0 |
if $self->wc_path |
|
1564
|
0 |
0 |
if $self->wc_subdir |
|
1576
|
0 |
0 |
if (close $fh) { } |
|
|
0 |
0 |
elsif ($!) { } |
|
|
0 |
0 |
elsif ($? >> 8) { } |
|
1616
|
0 |
0 |
if ($$self{'i'} >= scalar @{$$self{'data'};}) |
|
1620
|
0 |
0 |
if (wantarray) |