line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Repository::Plugin; |
2
|
|
|
|
|
|
|
$Git::Repository::Plugin::VERSION = '1.323'; |
3
|
1
|
|
|
1
|
|
731
|
use strict; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
28
|
|
5
|
1
|
|
|
1
|
|
25
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
6
|
1
|
|
|
1
|
|
7
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
276
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub install { |
9
|
4
|
|
|
4
|
1
|
13
|
my ( $class, @keywords ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# get the list of keywords to install |
12
|
4
|
|
|
|
|
13
|
my %keyword = map { $_ => 1 } my @all_keywords = $class->_keywords; |
|
7
|
|
|
|
|
30
|
|
13
|
4
|
100
|
|
|
|
14
|
@keywords = @all_keywords if !@keywords; |
14
|
|
|
|
|
|
|
@keywords = grep { |
15
|
4
|
|
66
|
|
|
7
|
!( !exists $keyword{$_} and carp "Unknown keyword '$_' in $class" ) |
|
6
|
|
|
|
|
180
|
|
16
|
|
|
|
|
|
|
} @keywords; |
17
|
4
|
100
|
|
|
|
98
|
carp "No keywords installed from $class" if !@keywords; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# install keywords |
20
|
1
|
|
|
1
|
|
10
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
177
|
|
21
|
4
|
|
|
|
|
29
|
*{"Git::Repository::$_"} = \&{"$class\::$_"} for @keywords; |
|
4
|
|
|
|
|
47
|
|
|
4
|
|
|
|
|
17
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub _keywords { |
25
|
2
|
|
|
2
|
|
11
|
my ($class) = @_; |
26
|
2
|
|
|
|
|
247
|
carp "Use of \@KEYWORDS by $class is deprecated"; |
27
|
1
|
|
|
1
|
|
8
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
61
|
|
28
|
2
|
|
|
|
|
15
|
return @{"$class\::KEYWORDS"}; |
|
2
|
|
|
|
|
12
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |