line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
46629
|
use 5.006; |
|
7
|
|
|
|
|
15
|
|
2
|
7
|
|
|
7
|
|
28
|
use strict; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
101
|
|
3
|
7
|
|
|
7
|
|
33
|
use warnings; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
1179
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Git::Wrapper::Status; |
6
|
|
|
|
|
|
|
# ABSTRACT: A specific status information in the Git |
7
|
|
|
|
|
|
|
$Git::Wrapper::Status::VERSION = '0.048_090'; # TRIAL |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
$Git::Wrapper::Status::VERSION = '0.048090';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
|
31
|
|
|
31
|
1
|
124
|
my ($class, $mode, $from, $to) = @_; |
28
|
|
|
|
|
|
|
|
29
|
31
|
|
|
|
|
411
|
return bless { |
30
|
|
|
|
|
|
|
mode => $mode, |
31
|
|
|
|
|
|
|
from => $from, |
32
|
|
|
|
|
|
|
to => $to, |
33
|
|
|
|
|
|
|
} => $class; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
6
|
|
|
6
|
1
|
88
|
sub mode { $modes{ shift->{mode} } } |
37
|
|
|
|
|
|
|
|
38
|
6
|
|
|
6
|
1
|
43
|
sub from { shift->{from} } |
39
|
|
|
|
|
|
|
|
40
|
6
|
100
|
|
6
|
1
|
5651
|
sub to { defined( $_[0]->{to} ) ? $_[0]->{to} : '' } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |