blib/lib/Git/Raw/Blame/Hunk.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/Blame.pm ↑ Summary blib/lib/Git/Raw/Blob.pm »
1 package Git::Raw::Blame::Hunk;
2 1 $Git::Raw::Blame::Hunk::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::Blame::Hunk - Git blame hunk class
11  
12 =head1 VERSION
13  
14 version 0.90
15  
16 =head1 DESCRIPTION
17  
18 A L<Git::Raw::Blame::Hunk> represents a hunk in the blame information of a file.
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 lines_in_hunk( )
26  
27 Retrieve the number of lines in the hunk.
28  
29 =head2 final_commit_id( )
30  
31 Retrieve the id of the commit where this line was last changed as a string.
32  
33 =head2 final_start_line_number( )
34  
35 Retrieve the 1-based line number where this hunk begins in the final version
36 of the file.
37  
38 =head2 orig_commit_id( )
39  
40 Retrieve the id of the commit where this hunk was found. This will usually
41 be the same as C<"final_commit_id">.
42  
43 =head2 orig_start_line_number( )
44  
45 Retrieve the 1-based line number where this hunk begins in the file named by
46 C<"orig_path"> in the commit specified by C<"orig_commit_id">.
47  
48 =head2 orig_path( )
49  
50 Retrieve the path to the file where this hunk originated.
51  
52 =head2 boundary( )
53  
54 If the hunk has been tracked to a boundary commit.
55  
56 =head1 AUTHOR
57  
58 Alessandro Ghedini <alexbio@cpan.org>
59  
60 Jacques Germishuys <jacquesg@cpan.org>
61  
62 =head1 LICENSE AND COPYRIGHT
63  
64 Copyright 2014 Alessandro Ghedini.
65  
66 This program is free software; you can redistribute it and/or modify it
67 under the terms of either: the GNU General Public License as published
68 by the Free Software Foundation; or the Artistic License.
69  
70 See http://dev.perl.org/licenses/ for more information.
71  
72 =cut
73  
74 1 1; # End of Git::Raw::Blame::Hunk
« blib/lib/Git/Raw/Blame.pm ↑ Summary blib/lib/Git/Raw/Blob.pm »