| 1 | package Git::Raw::Blame; | ||
| 2 | 1 | $Git::Raw::Blame::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 - Git blame class | ||
| 11 | |||
| 12 | =head1 VERSION | ||
| 13 | |||
| 14 | version 0.90 | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | A L<Git::Raw::Blame> represents the blame information for 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 hunk_count( ) | ||
| 26 | |||
| 27 | Retrieve the number of hunks that exist in the blame structure. | ||
| 28 | |||
| 29 | =head2 hunks( [$index] ) | ||
| 30 | |||
| 31 | Returns a list of L<Git::Raw::Blame::Hunk> objects. If C<$index> is specified | ||
| 32 | only the hunk at the specified index will be returned. | ||
| 33 | |||
| 34 | =head2 buffer( $buffer ) | ||
| 35 | |||
| 36 | Retrieve a new L<Git::Raw::Blame> object, created from this reference | ||
| 37 | L<Git:Raw::Blame> object and C<$buffer>, a file that has been modified in | ||
| 38 | memory. | ||
| 39 | |||
| 40 | =head2 line( $line_no ) | ||
| 41 | |||
| 42 | Retrieve the L<Git::Raw::Blame::Hunk> that relates to the given line number in | ||
| 43 | the newest commit. | ||
| 44 | |||
| 45 | =head1 AUTHOR | ||
| 46 | |||
| 47 | Alessandro Ghedini <alexbio@cpan.org> | ||
| 48 | |||
| 49 | Jacques Germishuys <jacquesg@cpan.org> | ||
| 50 | |||
| 51 | =head1 LICENSE AND COPYRIGHT | ||
| 52 | |||
| 53 | Copyright 2014 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::Blame | |