line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::GitHooks::Hook::PostCheckout; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# IMPORTANT: if you need to create a custom run() subroutine in this package, |
4
|
|
|
|
|
|
|
# amend t/16-run-dash.t so that the test performed there is still relevant. |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
1357
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
61
|
|
7
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
63
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Inherit from the base Hook class. |
10
|
2
|
|
|
2
|
|
6
|
use base 'App::GitHooks::Hook'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
839
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
App::GitHooks::Hook::PostCheckout - Handle the post-checkout hook. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 VERSION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Version 1.8.0 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
our $VERSION = '1.8.0'; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 BUGS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Please report any bugs or feature requests through the web interface at |
30
|
|
|
|
|
|
|
L. |
31
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on |
32
|
|
|
|
|
|
|
your bug as I make changes. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SUPPORT |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
perldoc App::GitHooks::Hook::PostCheckout |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
You can also look for information at: |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=over |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item * GitHub's request tracker |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
L |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
L |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * CPAN Ratings |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
L |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * MetaCPAN |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
L |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=back |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L, |
68
|
|
|
|
|
|
|
C<< >>. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Copyright 2013-2016 Guillaume Aubert. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This code is free software; you can redistribute it and/or modify it under the |
76
|
|
|
|
|
|
|
same terms as Perl 5 itself. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY |
79
|
|
|
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
80
|
|
|
|
|
|
|
PARTICULAR PURPOSE. See the LICENSE file for more details. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=cut |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
1; |