line |
true |
false |
branch |
221
|
0 |
14 |
unless $args->{'source'}
|
224
|
4 |
10 |
unless $res->[0] == 200
|
227
|
0 |
10 |
if defined $ir and ref $ir ne 'ARRAY'
|
230
|
0 |
10 |
if (defined $irp)
|
231
|
0 |
0 |
if ref $irp
|
233
|
0 |
0 |
unless eval 'qr/$irp/'
|
237
|
0 |
10 |
if defined $er and ref $er ne 'ARRAY'
|
240
|
0 |
10 |
if (defined $erp)
|
241
|
0 |
0 |
if ref $erp
|
243
|
0 |
0 |
unless eval 'qr/$erp/'
|
247
|
4 |
6 |
if ($requires_target)
|
248
|
0 |
4 |
unless $args->{'target'}
|
250
|
1 |
3 |
unless $res->[0] == 200
|
260
|
4 |
28 |
unless -d $dir
|
261
|
13 |
15 |
if -d "$dir/.git"
|
262
|
0 |
15 |
if -d "$dir/branches" and -f "$dir/HEAD"
|
273
|
0 |
36 |
if ($e->{'name'} =~ /\A(repos\.db|\.gitbunch-sync-timestamp)\z/)
|
280
|
0 |
36 |
if (defined $args->{'repo'})
|
283
|
0 |
0 |
unless $is_repo
|
284
|
0 |
0 |
unless $args->{'repo'} eq $e
|
288
|
12 |
24 |
if ($skip_non_repo and not $is_repo)
|
293
|
18 |
6 |
if ($is_repo) { }
|
|
0 |
6 |
elsif (-f $dir and $args->{'exclude_files'}) { }
|
|
0 |
6 |
elsif (-d $dir and $args->{'exclude_non_git_dirs'}) { }
|
295
|
0 |
18 |
if ($ir and not $e->{'name'} ~~ \@$ir)
|
300
|
0 |
18 |
if (defined $irp and not $e->{'name'} =~ qr/$irp/)
|
305
|
0 |
18 |
if ($er and $e->{'name'} ~~ \@$er)
|
310
|
0 |
18 |
if (defined $erp and $e->{'name'} =~ qr/$erp/)
|
315
|
0 |
18 |
if ($min_rat and &max(grep({defined $_;} $e->{'mtime'}, $e->{'commit_time'}, $e->{'status_time'}, $e->{'pull_time'})) < $min_rat)
|
338
|
14 |
4 |
if ($must_exist // 1)
|
339
|
2 |
12 |
unless -d $$path_ref
|
341
|
3 |
13 |
if _is_repo($$path_ref)
|
353
|
0 |
9 |
unless opendir my $dh, '.'
|
354
|
45 |
9 |
if $_ ne '.'
|
359
|
27 |
9 |
if (-d _) { }
|
360
|
9 |
18 |
if ($e->{'name'} =~ /\A\./) { }
|
378
|
9 |
0 |
unless -f 'repos.db'
|
389
|
0 |
0 |
unless my $row = $rows{$e->{'name'}}
|
442
|
2 |
6 |
unless $res->[0] == 200
|
454
|
0 |
6 |
if $progress
|
455
|
0 |
6 |
if $progress
|
459
|
12 |
12 |
if _skip_process_repo($e, \%args, '.')
|
460
|
6 |
6 |
$i++ ? :
|
462
|
0 |
12 |
if $progress
|
467
|
0 |
12 |
if ($args{'-dry_run'})
|
474
|
10 |
2 |
if ($exit == 0 and $output =~ /nothing to commit/)
|
481
|
0 |
2 |
if ($exit == 0 and $output =~ /^\s*Unmerged paths:/m) { }
|
|
1 |
1 |
elsif ($exit == 0 and $output =~ /(
|
|
1 |
0 |
elsif ($exit == 0 and $output =~ /(
|
|
0 |
0 |
elsif ($exit == 128 and $output =~ /Not a git repository/) { }
|
507
|
0 |
6 |
if $progress
|
508
|
2 |
4 |
$has_unclean ? :
|
|
2 |
4 |
$has_unclean ? :
|
546
|
0 |
0 |
unless $res->[0] == 200
|
554
|
0 |
0 |
if ($sort)
|
558
|
0 |
0 |
if (($rev, $field) = $sort =~ /\A(-)?(mtime|commit_time|status_time|pull_time)/) { }
|
|
0 |
0 |
elsif (($rev, $field) = $sort =~ /\A(-)?(name)/) { }
|
559
|
0 |
0 |
$rev ? :
|
561
|
0 |
0 |
$rev ? :
|
570
|
0 |
0 |
if _skip_process_entry($e, \%args, '.')
|
575
|
0 |
0 |
if ($args{'detail'}) { }
|
600
|
0 |
4 |
if ($exit)
|
609
|
0 |
5 |
if ($exit)
|
614
|
0 |
5 |
unless ($output =~ /commit (\S+)/)
|
626
|
0 |
4 |
if ($exit)
|
634
|
0 |
4 |
if ($exit)
|
639
|
0 |
4 |
unless ($output =~ /commit (\S+)/)
|
655
|
2 |
3 |
if ($src_heads{$branch} and $dest_heads{$branch} and $src_heads{$branch} eq $dest_heads{$branch})
|
666
|
2 |
1 |
if @src_branches > 1
|
668
|
0 |
3 |
if ($is_bare) { }
|
675
|
2 |
1 |
$branch ~~ \@dest_branches ? :
|
684
|
0 |
3 |
if ($exit == 0 and $output =~ /Already up-to-date/) { }
|
|
0 |
3 |
elsif ($output =~ /^error: (.+)/m) { }
|
|
3 |
0 |
elsif ($exit == 0 and $output =~ /^Updating \s|
|
696
|
2 |
1 |
if @src_branches > 1
|
698
|
1 |
2 |
if @src_branches == 1
|
712
|
0 |
3 |
if ($exit != 0)
|
719
|
0 |
4 |
if ($opts->{'delete_branch'})
|
721
|
0 |
0 |
if $branch ~~ \@src_branches
|
722
|
0 |
0 |
if $branch eq 'master'
|
729
|
0 |
0 |
if $exit
|
734
|
2 |
2 |
if ($changed_branch) { }
|
881
|
3 |
3 |
unless $res->[0] == 200
|
890
|
0 |
3 |
if $backup
|
894
|
1 |
0 |
unless (-d $target or $args{'-dry_run'} or $action eq 'list-source-repos')
|
896
|
0 |
1 |
unless make_path($target)
|
904
|
3 |
0 |
unless $args{'-dry_run'} or $action eq 'list-source-repos'
|
906
|
0 |
3 |
$args{'rsync_opt_maintain_ownership'} ? :
|
912
|
0 |
3 |
if $args{'min_repo_access_time'}
|
915
|
3 |
0 |
unless $action eq 'list-source-repos'
|
919
|
0 |
3 |
if $progress
|
920
|
0 |
3 |
if $progress
|
927
|
0 |
12 |
if _skip_process_entry($e, \%args, "$source/$e->{'name'}")
|
930
|
0 |
12 |
if ($action eq 'list-source-repos')
|
931
|
0 |
0 |
if $is_repo
|
935
|
6 |
6 |
unless ($is_repo)
|
937
|
0 |
6 |
if $progress
|
944
|
0 |
6 |
if ($args{'skip_mtime_check'} or $args{'-dry_run'}) { }
|
955
|
0 |
6 |
log_is_debug() ? :
|
956
|
0 |
6 |
$args{'rsync_del'} ? :
|
957
|
6 |
0 |
unless $args{'-dry_run'}
|
961
|
0 |
6 |
$args{'-dry_run'} ? :
|
|
6 |
0 |
@extra_opts ? :
|
970
|
0 |
6 |
log_is_debug() ? :
|
971
|
0 |
6 |
if ($args{'-dry_run'}) { }
|
|
0 |
6 |
elsif ($result[0]) { }
|
978
|
4 |
2 |
if ($stdout =~ /^(deleting |\Q$uuid\E)/m)
|
988
|
2 |
4 |
unless (-e $repo)
|
989
|
0 |
2 |
if ($args{'-dry_run'})
|
993
|
0 |
2 |
if ($create_bare) { }
|
|
0 |
2 |
elsif (defined $create_bare) { }
|
999
|
0 |
0 |
if ($exit)
|
1012
|
0 |
0 |
if ($exit)
|
1020
|
0 |
2 |
if $progress
|
1027
|
0 |
2 |
if ($exit) { }
|
1043
|
0 |
4 |
if $progress
|
1046
|
0 |
4 |
if ($args{'-dry_run'})
|
1051
|
0 |
4 |
if ($backup and not $created)
|
1063
|
2 |
2 |
if ($res->[0] == 200)
|
1072
|
0 |
3 |
if $progress
|
1074
|
0 |
3 |
if ($action eq 'list-source-repos')
|
1117
|
0 |
0 |
unless $res->[0] == 200
|
1120
|
0 |
0 |
unless defined $command
|
1126
|
0 |
0 |
if $args{'min_repo_access_time'}
|
1130
|
0 |
0 |
if _skip_process_repo($e, \%args, '.')
|
1132
|
0 |
0 |
$i++ ? :
|
1133
|
0 |
0 |
if ($args{'-dry_run'})
|
1140
|
0 |
0 |
if ($exit) { }
|