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 =~ /(
Untracked \s files
)/x) { }
|
|
1 |
0 |
elsif ($exit == 0 and $output =~ /(
Changes \s to \s be \s committed |
Changes \s not \s staged \s for \s commit |
Changed \s but
)/mx) { }
|
|
0 |
0 |
elsif ($exit == 128 and $output =~ /Not a git repository/) { }
|
507
|
0 |
6 |
if $progress
|
508
|
2 |
4 |
$has_unclean ? :
|
543
|
0 |
0 |
unless $res->[0] == 200
|
551
|
0 |
0 |
if ($sort)
|
555
|
0 |
0 |
if (($rev, $field) = $sort =~ /\A(-)?(mtime|commit_time|status_time|pull_time)/) { }
|
|
0 |
0 |
elsif (($rev, $field) = $sort =~ /\A(-)?(name)/) { }
|
556
|
0 |
0 |
$rev ? :
|
558
|
0 |
0 |
$rev ? :
|
567
|
0 |
0 |
if _skip_process_entry($e, \%args, '.')
|
572
|
0 |
0 |
if ($args{'detail'}) { }
|
597
|
0 |
4 |
if ($exit)
|
606
|
0 |
5 |
if ($exit)
|
611
|
0 |
5 |
unless ($output =~ /commit (\S+)/)
|
623
|
0 |
4 |
if ($exit)
|
631
|
0 |
4 |
if ($exit)
|
636
|
0 |
4 |
unless ($output =~ /commit (\S+)/)
|
652
|
2 |
3 |
if ($src_heads{$branch} and $dest_heads{$branch} and $src_heads{$branch} eq $dest_heads{$branch})
|
663
|
2 |
1 |
if @src_branches > 1
|
665
|
0 |
3 |
if ($is_bare) { }
|
672
|
2 |
1 |
$branch ~~ \@dest_branches ? :
|
681
|
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|
^Merge \s made \s by \s recursive|
^Merge \s made \s by \s the \s 'recursive'|
/mx) { }
|
693
|
2 |
1 |
if @src_branches > 1
|
695
|
1 |
2 |
if @src_branches == 1
|
709
|
0 |
3 |
if ($exit != 0)
|
716
|
0 |
4 |
if ($opts->{'delete_branch'})
|
718
|
0 |
0 |
if $branch ~~ \@src_branches
|
719
|
0 |
0 |
if $branch eq 'master'
|
726
|
0 |
0 |
if $exit
|
731
|
2 |
2 |
if ($changed_branch) { }
|
878
|
3 |
3 |
unless $res->[0] == 200
|
887
|
0 |
3 |
if $backup
|
891
|
1 |
0 |
unless (-d $target or $args{'-dry_run'} or $action eq 'list-source-repos')
|
893
|
0 |
1 |
unless make_path($target)
|
901
|
3 |
0 |
unless $args{'-dry_run'} or $action eq 'list-source-repos'
|
903
|
0 |
3 |
$args{'rsync_opt_maintain_ownership'} ? :
|
909
|
0 |
3 |
if $args{'min_repo_access_time'}
|
912
|
3 |
0 |
unless $action eq 'list-source-repos'
|
916
|
0 |
3 |
if $progress
|
917
|
0 |
3 |
if $progress
|
924
|
0 |
12 |
if _skip_process_entry($e, \%args, "$source/$e->{'name'}")
|
927
|
0 |
12 |
if ($action eq 'list-source-repos')
|
928
|
0 |
0 |
if $is_repo
|
932
|
6 |
6 |
unless ($is_repo)
|
934
|
0 |
6 |
if $progress
|
941
|
0 |
6 |
if ($args{'skip_mtime_check'} or $args{'-dry_run'}) { }
|
952
|
0 |
6 |
log_is_debug() ? :
|
953
|
0 |
6 |
$args{'rsync_del'} ? :
|
954
|
6 |
0 |
unless $args{'-dry_run'}
|
958
|
0 |
6 |
$args{'-dry_run'} ? :
|
|
6 |
0 |
@extra_opts ? :
|
967
|
0 |
6 |
log_is_debug() ? :
|
968
|
0 |
6 |
if ($args{'-dry_run'}) { }
|
|
0 |
6 |
elsif ($result[0]) { }
|
975
|
4 |
2 |
if ($stdout =~ /^(deleting |\Q$uuid\E)/m)
|
985
|
2 |
4 |
unless (-e $repo)
|
986
|
0 |
2 |
if ($args{'-dry_run'})
|
990
|
0 |
2 |
if ($create_bare) { }
|
|
0 |
2 |
elsif (defined $create_bare) { }
|
996
|
0 |
0 |
if ($exit)
|
1009
|
0 |
0 |
if ($exit)
|
1017
|
0 |
2 |
if $progress
|
1024
|
0 |
2 |
if ($exit) { }
|
1040
|
0 |
4 |
if $progress
|
1043
|
0 |
4 |
if ($args{'-dry_run'})
|
1048
|
0 |
4 |
if ($backup and not $created)
|
1060
|
2 |
2 |
if ($res->[0] == 200)
|
1069
|
0 |
3 |
if $progress
|
1071
|
0 |
3 |
if ($action eq 'list-source-repos')
|
1114
|
0 |
0 |
unless $res->[0] == 200
|
1117
|
0 |
0 |
unless defined $command
|
1123
|
0 |
0 |
if $args{'min_repo_access_time'}
|
1127
|
0 |
0 |
if _skip_process_repo($e, \%args, '.')
|
1129
|
0 |
0 |
$i++ ? :
|
1130
|
0 |
0 |
if ($args{'-dry_run'})
|
1137
|
0 |
0 |
if ($exit) { }
|