line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Wrapper::Statuses; |
2
|
|
|
|
|
|
|
# ABSTRACT: Multiple git statuses information |
3
|
|
|
|
|
|
|
$Git::Wrapper::Statuses::VERSION = '0.047_090'; # TRIAL |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
1301
|
$Git::Wrapper::Statuses::VERSION = '0.047090';use 5.006; |
|
5
|
|
|
|
|
24
|
|
6
|
5
|
|
|
5
|
|
31
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
131
|
|
7
|
5
|
|
|
5
|
|
32
|
use warnings; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
168
|
|
8
|
|
|
|
|
|
|
|
9
|
5
|
|
|
5
|
|
1766
|
use Git::Wrapper::Status; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
1122
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
1
|
31
|
sub new { return bless {} => shift } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub add { |
14
|
1
|
|
|
1
|
1
|
15
|
my ($self, $type, $mode, $from, $to) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
26
|
my $status = Git::Wrapper::Status->new($mode, $from, $to); |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
5
|
push @{ $self->{ $type } }, $status; |
|
1
|
|
|
|
|
30
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub get { |
22
|
0
|
|
|
0
|
1
|
0
|
my ($self, $type) = @_; |
23
|
|
|
|
|
|
|
|
24
|
0
|
0
|
|
|
|
0
|
return @{ defined $self->{$type} ? $self->{$type} : [] }; |
|
0
|
|
|
|
|
0
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub is_dirty { |
28
|
2
|
|
|
2
|
1
|
16
|
my( $self ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
2
|
100
|
|
|
|
130
|
return keys %$self ? 1 : 0; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |