line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
92782
|
use 5.006; |
|
5
|
|
|
|
|
20
|
|
2
|
5
|
|
|
5
|
|
35
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
138
|
|
3
|
5
|
|
|
5
|
|
41
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
1352
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Git::Wrapper::Status; |
6
|
|
|
|
|
|
|
# ABSTRACT: A specific status information in the Git |
7
|
|
|
|
|
|
|
$Git::Wrapper::Status::VERSION = '0.047_090'; # TRIAL |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
$Git::Wrapper::Status::VERSION = '0.047090';my %modes = ( |
10
|
|
|
|
|
|
|
M => 'modified', |
11
|
|
|
|
|
|
|
A => 'added', |
12
|
|
|
|
|
|
|
D => 'deleted', |
13
|
|
|
|
|
|
|
R => 'renamed', |
14
|
|
|
|
|
|
|
C => 'copied', |
15
|
|
|
|
|
|
|
U => 'conflict', |
16
|
|
|
|
|
|
|
'?' => 'unknown', |
17
|
|
|
|
|
|
|
DD => 'both deleted', |
18
|
|
|
|
|
|
|
AA => 'both added', |
19
|
|
|
|
|
|
|
UU => 'both modified', |
20
|
|
|
|
|
|
|
AU => 'added by us', |
21
|
|
|
|
|
|
|
DU => 'deleted by us', |
22
|
|
|
|
|
|
|
UA => 'added by them', |
23
|
|
|
|
|
|
|
UD => 'deleted by them', |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new { |
27
|
1
|
|
|
1
|
1
|
8
|
my ($class, $mode, $from, $to) = @_; |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
24
|
return bless { |
30
|
|
|
|
|
|
|
mode => $mode, |
31
|
|
|
|
|
|
|
from => $from, |
32
|
|
|
|
|
|
|
to => $to, |
33
|
|
|
|
|
|
|
} => $class; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub mode { $modes{ shift->{mode} } } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
sub from { shift->{from} } |
39
|
|
|
|
|
|
|
|
40
|
0
|
0
|
|
0
|
1
|
|
sub to { defined( $_[0]->{to} ) ? $_[0]->{to} : '' } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |