File Coverage

blib/lib/Git/Raw/AnnotatedCommit.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1             package Git::Raw::AnnotatedCommit;
2             $Git::Raw::AnnotatedCommit::VERSION = '0.87';
3 35     35   237 use strict;
  35         68  
  35         1023  
4 35     35   169 use warnings;
  35         70  
  35         1957  
5             use overload
6 1     1   3467 '""' => sub { return $_[0] -> id },
7 35     35   210 fallback => 1;
  35         79  
  35         246  
8              
9 35     35   2424 use Git::Raw;
  35         66  
  35         1192  
10              
11             =head1 NAME
12              
13             Git::Raw::AnnotatedCommit - Git note class
14              
15             =head1 VERSION
16              
17             version 0.87
18              
19             =head1 DESCRIPTION
20              
21             A L represents a git annotated commit.
22              
23             B: 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 from the given commit C<$id>.
35              
36             =head1 AUTHOR
37              
38             Jacques Germishuys
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             1; # End of Git::Raw::AnnotatedCommit