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.048_090'; # TRIAL |
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
734
|
$Git::Wrapper::Log::VERSION = '0.048090';use 5.006; |
|
7
|
|
|
|
|
18
|
|
6
|
7
|
|
|
7
|
|
26
|
use strict; |
|
7
|
|
|
|
|
41
|
|
|
7
|
|
|
|
|
131
|
|
7
|
7
|
|
|
7
|
|
28
|
use warnings; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
1601
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
13
|
|
|
13
|
1
|
79
|
my ($class, $id, %arg) = @_; |
11
|
13
|
50
|
|
|
|
41
|
my $modifications = defined $arg{modifications} ? delete $arg{modifications} : []; |
12
|
13
|
|
|
|
|
182
|
return bless { |
13
|
|
|
|
|
|
|
id => $id, |
14
|
|
|
|
|
|
|
attr => {}, |
15
|
|
|
|
|
|
|
modifications => $modifications, |
16
|
|
|
|
|
|
|
%arg, |
17
|
|
|
|
|
|
|
} => $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
1
|
964
|
sub id { shift->{id} } |
21
|
27
|
|
|
27
|
1
|
207
|
sub attr { shift->{attr} } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub modifications { |
24
|
6
|
|
|
6
|
1
|
1036
|
my $self = shift; |
25
|
6
|
100
|
|
|
|
19
|
if (@_ > 0) { |
26
|
3
|
|
|
|
|
12
|
$self->{modifications} = [@_]; |
27
|
3
|
|
|
|
|
8
|
return scalar @{$self->{modifications}}; |
|
3
|
|
|
|
|
11
|
|
28
|
|
|
|
|
|
|
} |
29
|
3
|
|
|
|
|
3
|
else { return @{$self->{modifications}} } |
|
3
|
|
|
|
|
19
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
18
|
100
|
|
18
|
1
|
149
|
sub message { @_ > 1 ? ($_[0]->{message} = $_[1]) : $_[0]->{message} } |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
1
|
12
|
sub date { shift->attr->{date} } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub author { shift->attr->{author} } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |