| line |
true |
false |
branch |
|
178
|
0 |
0 |
if (defined $args[0]) |
|
179
|
0 |
0 |
if ($#args % 2 != 1) { } |
|
181
|
0 |
0 |
unless $#args == 0 |
|
188
|
0 |
0 |
unless (defined $opts{'Repository'} or defined $opts{'WorkingCopy'} or defined $opts{'Directory'}) |
|
193
|
0 |
0 |
if (defined $opts{'Directory'}) |
|
194
|
0 |
0 |
unless -d $opts{'Directory'} |
|
205
|
0 |
0 |
if ($dir) { } |
|
206
|
0 |
0 |
unless $dir =~ m[^/] |
|
212
|
0 |
0 |
if ($prefix) |
|
213
|
0 |
0 |
if (substr($dir, -length($prefix)) ne $prefix) |
|
225
|
0 |
0 |
unless (-d "$dir/refs" and -d "$dir/objects" and -e "$dir/HEAD") |
|
286
|
0 |
0 |
if (not defined wantarray) { } |
|
|
0 |
0 |
elsif (not wantarray) { } |
|
332
|
0 |
0 |
if defined $line |
|
420
|
0 |
0 |
if ($self) |
|
426
|
0 |
0 |
if $cwd_save |
|
467
|
0 |
0 |
if ($? >> 8) |
|
492
|
0 |
0 |
if (not defined $pid) { } |
|
|
0 |
0 |
elsif ($pid == 0) { } |
|
497
|
0 |
0 |
if (waitpid($pid, 0) > 0 and $? >> 8 != 0) |
|
570
|
0 |
0 |
if (exists $ENV{'GIT_ASKPASS'}) |
|
573
|
0 |
0 |
if (not defined $ret and exists $ENV{'SSH_ASKPASS'}) |
|
576
|
0 |
0 |
unless (defined $ret) |
|
579
|
0 |
0 |
if (defined $isPassword and $isPassword) { } |
|
584
|
0 |
0 |
if $key =~ /[\012\015]/ |
|
599
|
0 |
0 |
unless length $askpass |
|
602
|
0 |
0 |
unless open my $fh, '-|', $askpass, $prompt |
|
648
|
0 |
0 |
unless $self->wc_path |
|
651
|
0 |
0 |
unless -d $self->wc_path . '/' . $subdir |
|
687
|
0 |
0 |
if (not defined $val) { } |
|
728
|
0 |
0 |
$$opts{'kind'} ? : |
|
729
|
0 |
0 |
if $self |
|
730
|
0 |
0 |
if (wantarray) { } |
|
737
|
0 |
0 |
if ($E->value == 1) { } |
|
755
|
0 |
0 |
-t STDOUT ? : |
|
775
|
0 |
0 |
unless (defined $color) |
|
804
|
0 |
0 |
if (ref $groups eq 'ARRAY') |
|
806
|
0 |
0 |
if ($_ eq 'heads') { } |
|
|
0 |
0 |
elsif ($_ eq 'tags') { } |
|
817
|
0 |
0 |
if (ref $refglobs eq 'ARRAY') |
|
821
|
0 |
0 |
$self ? : |
|
862
|
0 |
0 |
if (lc $type eq 'committer' or lc $type eq 'author') { } |
|
864
|
0 |
0 |
if $self |
|
869
|
0 |
0 |
if (wantarray) { } |
|
878
|
0 |
0 |
$self ? : |
|
|
0 |
0 |
if $#ident == 0 |
|
915
|
0 |
0 |
if $filename =~ /[\r\n]/ |
|
920
|
0 |
0 |
unless (print $out $filename, "\n") |
|
926
|
0 |
0 |
unless (defined $hash) |
|
937
|
0 |
0 |
if defined $$self{'hash_object_pid'} |
|
947
|
0 |
0 |
unless defined $$self{'hash_object_pid'} |
|
968
|
0 |
0 |
unless (print $out $sha1, "\n") |
|
974
|
0 |
0 |
if ($description =~ / missing$/) |
|
979
|
0 |
0 |
unless ($description =~ /^[0-9a-fA-F]{40} \S+ (\d+)$/) |
|
990
|
0 |
0 |
unless $bytesLeft |
|
992
|
0 |
0 |
$bytesLeft < 1024 ? : |
|
994
|
0 |
0 |
unless (defined $read) |
|
998
|
0 |
0 |
unless (print $fh $blob) |
|
1008
|
0 |
0 |
unless (defined $read) |
|
1012
|
0 |
0 |
unless ($read == 1 and $newline eq "\n") |
|
1023
|
0 |
0 |
if defined $$self{'cat_blob_pid'} |
|
1033
|
0 |
0 |
unless defined $$self{'cat_blob_pid'} |
|
1056
|
0 |
0 |
if ($_ eq '') { } |
|
|
0 |
0 |
elsif (not /^([^=]+)=(.*)$/) { } |
|
1086
|
0 |
0 |
if (not defined $key && length $key) { } |
|
|
0 |
0 |
elsif ($key =~ /[=\n\0]/) { } |
|
|
0 |
0 |
elsif (defined $value and $value =~ /[\n\0]/) { } |
|
1095
|
0 |
0 |
if $a eq 'url' |
|
1098
|
0 |
0 |
if $b eq 'url' |
|
1101
|
0 |
0 |
if (defined $$credential{$key}) |
|
1115
|
0 |
0 |
if ($op eq 'fill') |
|
1118
|
0 |
0 |
if (<$reader>) |
|
1180
|
0 |
0 |
if ('CODE' eq ref $op_or_code) { } |
|
1183
|
0 |
0 |
if (defined $ret) |
|
1184
|
0 |
0 |
$ret ? : |
|
1250
|
0 |
0 |
if defined $$temp_fd and $$temp_fd->opened |
|
1275
|
0 |
0 |
if (exists $TEMP_FILEMAP{$temp_fd}) |
|
1278
|
0 |
0 |
unless ($TEMP_FILES{$temp_fd}{'locked'}) |
|
1282
|
0 |
0 |
if $trunc and $temp_fd->opened |
|
1294
|
0 |
0 |
if (defined $$temp_fd and $$temp_fd->opened) { } |
|
1295
|
0 |
0 |
if ($TEMP_FILES{$$temp_fd}{'locked'}) |
|
1300
|
0 |
0 |
if (defined $$temp_fd) |
|
1308
|
0 |
0 |
if (defined $self) |
|
1315
|
0 |
0 |
unless ($$temp_fd, $fname) = File::Temp::tempfile("Git_${n}_XXXXXX", 'UNLINK', 1, 'DIR', $tmpdir) |
|
1328
|
0 |
0 |
if $@ |
|
1340
|
0 |
0 |
unless truncate $temp_fd, 0 |
|
1342
|
0 |
0 |
unless sysseek $temp_fd, 0, 0 and seek $temp_fd, 0, 0 |
|
1344
|
0 |
0 |
unless sysseek($temp_fd, 0, 1) == 0 and tell $temp_fd == 0 |
|
1359
|
0 |
0 |
if (exists $TEMP_FILEMAP{$temp_fd}) |
|
1366
|
0 |
1 |
if %TEMP_FILEMAP |
|
1431
|
0 |
0 |
unless defined $ref |
|
1432
|
0 |
0 |
if (ref $ref eq 'ARRAY') { } |
|
1462
|
0 |
0 |
if ($array) { } |
|
1475
|
0 |
0 |
if $err |
|
1476
|
0 |
0 |
$array ? : |
|
1497
|
0 |
0 |
UNIVERSAL::isa($_[0], 'Git') ? : |
|
1503
|
0 |
0 |
unless $cmd =~ /^[a-z0-9A-Z_-]+$/ |
|
1511
|
0 |
0 |
if (ref $p[0]) { } |
|
1513
|
0 |
0 |
ref $p[0] ? : |
|
1520
|
0 |
0 |
if ($^O eq 'MSWin32') { } |
|
1524
|
0 |
0 |
unless $direction eq '-|' |
|
1536
|
0 |
0 |
if (not defined $pid) { } |
|
|
0 |
0 |
elsif ($pid == 0) { } |
|
1539
|
0 |
0 |
if ($opts{'STDERR'}) { } |
|
|
0 |
0 |
elsif (defined $opts{'STDERR'}) { } |
|
1540
|
0 |
0 |
unless open STDERR, '>&', $opts{'STDERR'} |
|
1543
|
0 |
0 |
unless open STDERR, '>', '/dev/null' |
|
1549
|
0 |
0 |
wantarray ? : |
|
1564
|
0 |
0 |
if ($self) |
|
1565
|
0 |
0 |
if $self->repo_path |
|
1566
|
0 |
0 |
if $self->repo_path and $self->wc_path |
|
1568
|
0 |
0 |
if $self->wc_path |
|
1569
|
0 |
0 |
if $self->wc_subdir |
|
1581
|
0 |
0 |
if (close $fh) { } |
|
|
0 |
0 |
elsif ($!) { } |
|
|
0 |
0 |
elsif ($? >> 8) { } |
|
1621
|
0 |
0 |
if ($$self{'i'} >= scalar @{$$self{'data'};}) |
|
1625
|
0 |
0 |
if (wantarray) |