blib/lib/Git/Raw/Note.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 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/Merge/File/Result.pm ↑ Summary blib/lib/Git/Raw/Odb.pm »
1 package Git::Raw::Note;
2 1 $Git::Raw::Note::VERSION = '0.90';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Git::Raw;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Git::Raw::Note - Git note class
11  
12 =head1 VERSION
13  
14 version 0.90
15  
16 =head1 DESCRIPTION
17  
18 A L<Git::Raw::Note> represents a git note.
19  
20 B<WARNING>: The API of this module is unstable and may change without warning
21 (any change will be appropriately documented in the changelog).
22  
23 =head1 METHODS
24  
25 =head2 create( $repo, $commitish, $content, [$refname, $force] )
26  
27 Add a note for an object. C<$refname> is the canonical name of the note
28 reference to use (defaults to C<"refs/notes/commits">). Returns a
29 L<Git::Raw::Note> object.
30  
31 =head2 read( $repo, $commitish, [$refname] )
32  
33 Read the note for C<$commitish>. Returns a L<Git::Raw::Note> object if a note
34 is associated with C<$commitish>, otherwise C<undef>.
35  
36 =head2 remove( $repo, $commitish, [$refname] )
37  
38 Remove the note from C<$commitish>.
39  
40 =head2 id( )
41  
42 Retrieve the note's id as a string.
43  
44 =head2 message( )
45  
46 Retrieve the note's message.
47  
48 =head2 author( )
49  
50 Retrieve the L<Git::Raw::Signature> representing the author of the note.
51  
52 =head2 committer( )
53  
54 Retrieve the L<Git::Raw::Signature> representing the committer.
55  
56 =head2 default_ref( $repo )
57  
58 Get the default notes reference for the repository. Returns a
59 L<Git::Raw::Reference> object if the reference exists otherwise C<undef>.
60  
61 =head1 AUTHOR
62  
63 Jacques Germishuys <jacquesg@cpan.org>
64  
65 =head1 LICENSE AND COPYRIGHT
66  
67 Copyright 2014 Jacques Germishuys.
68  
69 This program is free software; you can redistribute it and/or modify it
70 under the terms of either: the GNU General Public License as published
71 by the Free Software Foundation; or the Artistic License.
72  
73 See http://dev.perl.org/licenses/ for more information.
74  
75 =cut
76  
77 1 1; # End of Git::Raw::Note
« blib/lib/Git/Raw/Merge/File/Result.pm ↑ Summary blib/lib/Git/Raw/Odb.pm »