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.048_090'; # TRIAL |
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
795
|
$Git::Wrapper::Statuses::VERSION = '0.048090';use 5.006; |
|
7
|
|
|
|
|
19
|
|
6
|
7
|
|
|
7
|
|
28
|
use strict; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
111
|
|
7
|
7
|
|
|
7
|
|
24
|
use warnings; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
139
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
1749
|
use Git::Wrapper::Status; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
897
|
|
10
|
|
|
|
|
|
|
|
11
|
39
|
|
|
39
|
1
|
200
|
sub new { return bless {} => shift } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub add { |
14
|
31
|
|
|
31
|
1
|
223
|
my ($self, $type, $mode, $from, $to) = @_; |
15
|
|
|
|
|
|
|
|
16
|
31
|
|
|
|
|
250
|
my $status = Git::Wrapper::Status->new($mode, $from, $to); |
17
|
|
|
|
|
|
|
|
18
|
31
|
|
|
|
|
87
|
push @{ $self->{ $type } }, $status; |
|
31
|
|
|
|
|
248
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub get { |
22
|
28
|
|
|
28
|
1
|
197
|
my ($self, $type) = @_; |
23
|
|
|
|
|
|
|
|
24
|
28
|
100
|
|
|
|
63
|
return @{ defined $self->{$type} ? $self->{$type} : [] }; |
|
28
|
|
|
|
|
477
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub is_dirty { |
28
|
11
|
|
|
11
|
1
|
35
|
my( $self ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
11
|
100
|
|
|
|
218
|
return keys %$self ? 1 : 0; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |