line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
3360
|
use 5.008; # utf8 |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
167
|
|
2
|
4
|
|
|
4
|
|
23
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
137
|
|
3
|
4
|
|
|
4
|
|
23
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
113
|
|
4
|
4
|
|
|
4
|
|
1107
|
use utf8; |
|
4
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
27
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Git::Wrapper::Plus; |
7
|
|
|
|
|
|
|
$Git::Wrapper::Plus::VERSION = '0.004010'; |
8
|
|
|
|
|
|
|
# ABSTRACT: A Toolkit for working with Git::Wrapper in an Object Oriented Way. |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|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
|
|
|
|
|
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
|
105
|
4
|
|
|
4
|
|
1370
|
use Moo qw( has ); |
|
4
|
|
|
|
|
20408
|
|
|
4
|
|
|
|
|
28
|
|
106
|
4
|
|
|
4
|
|
2552
|
use Scalar::Util qw( blessed ); |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
3164
|
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
sub BUILDARGS { |
120
|
4
|
|
|
4
|
1
|
5848
|
my ( undef, @args ) = @_; |
121
|
4
|
50
|
|
|
|
24
|
if ( 1 == @args ) { |
122
|
|
|
|
|
|
|
blesscheck: { |
123
|
4
|
50
|
|
|
|
7
|
if ( blessed $args[0] ) { |
|
4
|
|
|
|
|
28
|
|
124
|
4
|
100
|
|
|
|
58
|
if ( $args[0]->isa('Path::Tiny') ) { |
125
|
2
|
|
|
|
|
14
|
$args[0] = q[] . $args[0]; |
126
|
2
|
|
|
|
|
16
|
last blesscheck; |
127
|
|
|
|
|
|
|
} |
128
|
2
|
100
|
|
|
|
15
|
if ( $args[0]->isa('Path::Class::Dir') ) { |
129
|
1
|
|
|
|
|
5
|
$args[0] = q[] . $args[0]; |
130
|
1
|
|
|
|
|
28
|
last blesscheck; |
131
|
|
|
|
|
|
|
} |
132
|
1
|
50
|
|
|
|
9
|
if ( $args[0]->isa('Path::Class::File') ) { |
133
|
0
|
|
|
|
|
0
|
$args[0] = q[] . $args[0]; |
134
|
0
|
|
|
|
|
0
|
last blesscheck; |
135
|
|
|
|
|
|
|
} |
136
|
1
|
|
|
|
|
24
|
return { git => $args[0] }; |
137
|
|
|
|
|
|
|
} |
138
|
|
|
|
|
|
|
} |
139
|
3
|
50
|
|
|
|
16
|
return $args[0] if ref $args[0]; |
140
|
|
|
|
|
|
|
|
141
|
3
|
|
|
|
|
26
|
require Git::Wrapper; |
142
|
3
|
|
|
|
|
23
|
return { git => Git::Wrapper->new( $args[0] ) }; |
143
|
|
|
|
|
|
|
} |
144
|
0
|
|
|
|
|
0
|
return {@args}; |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
has git => ( is => ro =>, required => 1 ); |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
has refs => ( is => ro =>, lazy => 1, builder => 1 ); |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
sub _build_refs { |
158
|
1
|
|
|
1
|
|
2662
|
my ( $self, ) = @_; |
159
|
1
|
|
|
|
|
854
|
require Git::Wrapper::Plus::Refs; |
160
|
1
|
|
|
|
|
9
|
return Git::Wrapper::Plus::Refs->new( git => $self->git ); |
161
|
|
|
|
|
|
|
} |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
has tags => ( is => ro =>, lazy => 1, builder => 1 ); |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
sub _build_tags { |
170
|
1
|
|
|
1
|
|
1000
|
my ( $self, ) = @_; |
171
|
1
|
|
|
|
|
791
|
require Git::Wrapper::Plus::Tags; |
172
|
1
|
|
|
|
|
10
|
return Git::Wrapper::Plus::Tags->new( git => $self->git ); |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
has branches => ( is => ro =>, lazy => 1, builder => 1 ); |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
sub _build_branches { |
182
|
1
|
|
|
1
|
|
2485
|
my ( $self, ) = @_; |
183
|
1
|
|
|
|
|
773
|
require Git::Wrapper::Plus::Branches; |
184
|
1
|
|
|
|
|
10
|
return Git::Wrapper::Plus::Branches->new( git => $self->git ); |
185
|
|
|
|
|
|
|
} |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
has versions => ( is => ro =>, lazy => 1, builder => 1 ); |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
sub _build_versions { |
194
|
1
|
|
|
1
|
|
2625
|
my ( $self, ) = @_; |
195
|
1
|
|
|
|
|
9
|
require Git::Wrapper::Plus::Versions; |
196
|
1
|
|
|
|
|
39
|
return Git::Wrapper::Plus::Versions->new( git => $self->git ); |
197
|
|
|
|
|
|
|
} |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
has support => ( is => ro =>, lazy => 1, builder => 1 ); |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
sub _build_support { |
206
|
1
|
|
|
1
|
|
1086
|
my ( $self, ) = @_; |
207
|
1
|
|
|
|
|
774
|
require Git::Wrapper::Plus::Support; |
208
|
1
|
|
|
|
|
11
|
return Git::Wrapper::Plus::Support->new( git => $self->git ); |
209
|
|
|
|
|
|
|
} |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
1; |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
__END__ |