blib/lib/Git/Raw/AnnotatedCommit.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Git/Raw.pm ↑ Summary blib/lib/Git/Raw/Blame.pm »
1 package Git::Raw::AnnotatedCommit;
2 87 $Git::Raw::AnnotatedCommit::VERSION = '0.90';
3 87 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 87 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use overload
6 1 ▶ '""' => sub { return $_[0] -> id },
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
7 87 fallback => 1;
8  
9 87 ▶use Git::Raw;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 =head1 NAME
12  
13 Git::Raw::AnnotatedCommit - Git note class
14  
15 =head1 VERSION
16  
17 version 0.90
18  
19 =head1 DESCRIPTION
20  
21 A L<Git::Raw::AnnotatedCommit> represents a git annotated commit.
22  
23 B<WARNING>: The API of this module is unstable and may change without warning
24 (any change will be appropriately documented in the changelog).
25  
26 =head1 METHODS
27  
28 =head2 id( )
29  
30 Retrieve the id of the commit as a string.
31  
32 =head2 lookup( $repo, $id )
33  
34 Create a L<Git::Raw::Annotated::Commit> from the given commit C<$id>.
35  
36 =head1 AUTHOR
37  
38 Jacques Germishuys <jacquesg@cpan.org>
39  
40 =head1 LICENSE AND COPYRIGHT
41  
42 Copyright 2016 Jacques Germishuys.
43  
44 This program is free software; you can redistribute it and/or modify it
45 under the terms of either: the GNU General Public License as published
46 by the Free Software Foundation; or the Artistic License.
47  
48 See http://dev.perl.org/licenses/ for more information.
49  
50 =cut
51  
52 87 1; # End of Git::Raw::AnnotatedCommit
« blib/lib/Git/Raw.pm ↑ Summary blib/lib/Git/Raw/Blame.pm »