blib/lib/Git/Raw/Tree/Entry.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/Tree/Builder.pm ↑ Summary blib/lib/Git/Raw/Walker.pm »
1 package Git::Raw::Tree::Entry;
2 1 $Git::Raw::Tree::Entry::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::Tree::Entry - Git tree entry class
11  
12 =head1 VERSION
13  
14 version 0.90
15  
16 =head1 DESCRIPTION
17  
18 A L<Git::Raw::Tree::Entry> represents an entry in a L<Git::Raw::Tree>.
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 id( )
26  
27 Get the id of the object pointed by the entry, as a string.
28  
29 =head2 name( )
30  
31 Retrieve the filename of the tree entry.
32  
33 =head2 file_mode( )
34  
35 Retrieve the file mode of the tree entry, as an integer. For example,
36 a normal file has mode 0100644 = 33188.
37  
38 =head2 type( )
39  
40 Retrieve the type of the object pointed by the tree entry. Returns a constant
41 from the L<Git::Raw::Object> namespace.
42  
43 =head2 object( )
44  
45 Retrieve the object pointed by the tree entry.
46  
47 =head1 AUTHOR
48  
49 Alessandro Ghedini <alexbio@cpan.org>
50  
51 =head1 LICENSE AND COPYRIGHT
52  
53 Copyright 2012 Alessandro Ghedini.
54  
55 This program is free software; you can redistribute it and/or modify it
56 under the terms of either: the GNU General Public License as published
57 by the Free Software Foundation; or the Artistic License.
58  
59 See http://dev.perl.org/licenses/ for more information.
60  
61 =cut
62  
63 1 1; # End of Git::Raw::Tree::Entry
« blib/lib/Git/Raw/Tree/Builder.pm ↑ Summary blib/lib/Git/Raw/Walker.pm »