| 1 | package Git::Raw::Diff::File; | ||
| 2 | 1 | $Git::Raw::Diff::File::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::Diff::File - Git diff file class | ||
| 11 | |||
| 12 | =head1 VERSION | ||
| 13 | |||
| 14 | version 0.90 | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | A L<Git::Raw::Diff::File> represents one side of a diff delta. | ||
| 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 diff file as a string. | ||
| 28 | |||
| 29 | =head2 path( ) | ||
| 30 | |||
| 31 | Retrieve the path of the diff file. | ||
| 32 | |||
| 33 | =head2 size( ) | ||
| 34 | |||
| 35 | Retrieve the size of the diff file. | ||
| 36 | |||
| 37 | =head2 flags( ) | ||
| 38 | |||
| 39 | Retrieve the flags associated with the delta. Returns an array reference | ||
| 40 | with zero or more of the following: | ||
| 41 | |||
| 42 | =over 4 | ||
| 43 | |||
| 44 | =item * "binary" | ||
| 45 | |||
| 46 | Files treated as binary data. | ||
| 47 | |||
| 48 | =item * "valid_id" | ||
| 49 | |||
| 50 | C<"id"> value is known correct. | ||
| 51 | |||
| 52 | =back | ||
| 53 | |||
| 54 | =head2 mode( ) | ||
| 55 | |||
| 56 | Retrieve the diff file mode. Returns one of the following: | ||
| 57 | |||
| 58 | =over 4 | ||
| 59 | |||
| 60 | =item * "unreadable" | ||
| 61 | |||
| 62 | =item * "tree" | ||
| 63 | |||
| 64 | =item * "blob" | ||
| 65 | |||
| 66 | =item * "blob_executable" | ||
| 67 | |||
| 68 | =item * "link" | ||
| 69 | |||
| 70 | =item * "commit" | ||
| 71 | |||
| 72 | =back | ||
| 73 | |||
| 74 | =head1 AUTHOR | ||
| 75 | |||
| 76 | Alessandro Ghedini <alexbio@cpan.org> | ||
| 77 | |||
| 78 | Jacques Germishuys <jacquesg@cpan.org> | ||
| 79 | |||
| 80 | =head1 LICENSE AND COPYRIGHT | ||
| 81 | |||
| 82 | Copyright 2014 Alessandro Ghedini. | ||
| 83 | |||
| 84 | This program is free software; you can redistribute it and/or modify it | ||
| 85 | under the terms of either: the GNU General Public License as published | ||
| 86 | by the Free Software Foundation; or the Artistic License. | ||
| 87 | |||
| 88 | See http://dev.perl.org/licenses/ for more information. | ||
| 89 | |||
| 90 | =cut | ||
| 91 | |||
| 92 | 1 | 1; # End of Git::Raw::Diff::File | |