blib/lib/Git/Raw/Index/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/Index/Conflict.pm ↑ Summary blib/lib/Git/Raw/Indexer.pm »
1 package Git::Raw::Index::Entry;
2 1 $Git::Raw::Index::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::Index::Entry - Git index entry class
11  
12 =head1 VERSION
13  
14 version 0.90
15  
16 =head1 DESCRIPTION
17  
18 A L<Git::Raw::Index::Entry> represents an index entry in a Git repository index.
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 Retrieve the id of the index entry as a string.
28  
29 =head2 is_conflict( )
30  
31 Check if the entry has a non-zero stage entry.
32  
33 =head2 mode( )
34  
35 Retrieve the mode of the index entry. Note that this is returned as a
36 number, not a string.
37  
38 =head2 path( )
39  
40 Retrieve the path of the index entry.
41  
42 =head2 size( )
43  
44 Retrieve the size of the index entry.
45  
46 =head2 stage( )
47  
48 Retrieve the stage number for the index entry.
49  
50 =head2 blob( )
51  
52 Retrieve the blob for the the index entry. Returns a L<Git::Raw::Blob> object.
53  
54 =head2 clone( $path )
55  
56 Clone the entry, but use C<$path> as the entry's path. B<WARNING>: Use with
57 caution. This is only useful for scenarios where a conflict entry should be
58 added to the index where C<$path> should be used.
59  
60 =head1 AUTHOR
61  
62 Alessandro Ghedini <alexbio@cpan.org>
63  
64 Jacques Germishuys <jacquesg@cpan.org>
65  
66 =head1 LICENSE AND COPYRIGHT
67  
68 Copyright 2014 Alessandro Ghedini.
69  
70 This program is free software; you can redistribute it and/or modify it
71 under the terms of either: the GNU General Public License as published
72 by the Free Software Foundation; or the Artistic License.
73  
74 See http://dev.perl.org/licenses/ for more information.
75  
76 =cut
77  
78 1 1; # End of Git::Raw::Index::Entry
« blib/lib/Git/Raw/Index/Conflict.pm ↑ Summary blib/lib/Git/Raw/Indexer.pm »