line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Class::Role::Push; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
1894
|
use Moo::Role; with 'Git::Class::Role::Execute'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
16
|
|
4
|
|
|
|
|
|
|
requires 'git'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub push { |
7
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# my ($options, @args) = $self->_get_options(@_); |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
$self->git( push => @_ ); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
around _error => sub { |
15
|
|
|
|
|
|
|
my ($org, $self, $err) = @_; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# ignore normal (non-error) messages |
18
|
|
|
|
|
|
|
# (these will be shown anyway under the verbose mode) |
19
|
|
|
|
|
|
|
return if $err && |
20
|
|
|
|
|
|
|
($err =~ /^To\s\S+\n\s+\w{7}\.\.\w{7}/ |
21
|
|
|
|
|
|
|
or $err =~ /^Everything up\-to\-date/); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$self->$org($err); |
24
|
|
|
|
|
|
|
}; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |