line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Wrapper::Log; |
2
|
|
|
|
|
|
|
# ABSTRACT: Log line of the Git |
3
|
|
|
|
|
|
|
$Git::Wrapper::Log::VERSION = '0.047_090'; # TRIAL |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
1402
|
$Git::Wrapper::Log::VERSION = '0.047090';use 5.006; |
|
5
|
|
|
|
|
20
|
|
6
|
5
|
|
|
5
|
|
41
|
use strict; |
|
5
|
|
|
|
|
67
|
|
|
5
|
|
|
|
|
141
|
|
7
|
5
|
|
|
5
|
|
30
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
1872
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
13
|
|
|
13
|
1
|
173
|
my ($class, $id, %arg) = @_; |
11
|
13
|
50
|
|
|
|
77
|
my $modifications = defined $arg{modifications} ? delete $arg{modifications} : []; |
12
|
13
|
|
|
|
|
269
|
return bless { |
13
|
|
|
|
|
|
|
id => $id, |
14
|
|
|
|
|
|
|
attr => {}, |
15
|
|
|
|
|
|
|
modifications => $modifications, |
16
|
|
|
|
|
|
|
%arg, |
17
|
|
|
|
|
|
|
} => $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
1
|
1920
|
sub id { shift->{id} } |
21
|
27
|
|
|
27
|
1
|
326
|
sub attr { shift->{attr} } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub modifications { |
24
|
6
|
|
|
6
|
1
|
1810
|
my $self = shift; |
25
|
6
|
100
|
|
|
|
25
|
if (@_ > 0) { |
26
|
3
|
|
|
|
|
17
|
$self->{modifications} = [@_]; |
27
|
3
|
|
|
|
|
7
|
return scalar @{$self->{modifications}}; |
|
3
|
|
|
|
|
14
|
|
28
|
|
|
|
|
|
|
} |
29
|
3
|
|
|
|
|
7
|
else { return @{$self->{modifications}} } |
|
3
|
|
|
|
|
32
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
18
|
100
|
|
18
|
1
|
234
|
sub message { @_ > 1 ? ($_[0]->{message} = $_[1]) : $_[0]->{message} } |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
1
|
18
|
sub date { shift->attr->{date} } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub author { shift->attr->{author} } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |