| 1 | package Git::Raw::Filter::Source; | ||
| 2 | 1 | $Git::Raw::Filter::Source::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::Filter::Source - Git filter source class | ||
| 11 | |||
| 12 | =head1 VERSION | ||
| 13 | |||
| 14 | version 0.90 | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | A C<Git::Raw::Filter::Source> represents a Git filter source. | ||
| 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 filter source as a string. | ||
| 28 | |||
| 29 | =head2 path( ) | ||
| 30 | |||
| 31 | Retrieve the path that the filter source data is coming from. | ||
| 32 | |||
| 33 | =head2 file_mode( ) | ||
| 34 | |||
| 35 | Retrieve the file mode of the source file, as an integer. If the mode | ||
| 36 | is unknown, this will return 0. | ||
| 37 | |||
| 38 | =head2 mode( ) | ||
| 39 | |||
| 40 | Retrieve the mode to be applied. Possible values include: | ||
| 41 | |||
| 42 | =over 4 | ||
| 43 | |||
| 44 | =item * "to_worktree" | ||
| 45 | |||
| 46 | The file is being exported from the Git object database to the working | ||
| 47 | directory. | ||
| 48 | |||
| 49 | =item * "to_odb" | ||
| 50 | |||
| 51 | The file is being import from the working directory to the Git object | ||
| 52 | database. | ||
| 53 | |||
| 54 | =back | ||
| 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::Filter::Source | |