| 1 | package Git::Raw::Indexer; | ||
| 2 | 87 | $Git::Raw::Indexer::VERSION = '0.90'; | |
| 3 | 87 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 87 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 87 | ▶ | use Git::Raw; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Git::Raw::Indexer - Git indexer class | ||
| 11 | |||
| 12 | =head1 VERSION | ||
| 13 | |||
| 14 | version 0.90 | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | A L<Git::Raw::Indexer> represents a git indexer object. | ||
| 19 | |||
| 20 | =head1 METHODS | ||
| 21 | |||
| 22 | =head2 new( $directory, $odb ) | ||
| 23 | |||
| 24 | Create a new indexer. C<$directory> is the directory where the packfile and | ||
| 25 | index should be stored. | ||
| 26 | |||
| 27 | =head2 append( $data, $progress ) | ||
| 28 | |||
| 29 | Add C<$data> to the indexer. C<$progress> should be a L<Git::Raw::TransferProgress> | ||
| 30 | object. | ||
| 31 | |||
| 32 | =head2 commit( $progress ) | ||
| 33 | |||
| 34 | Finalize the pack and index. This will resolve any pending deltas and write out | ||
| 35 | the index file. C<$progress> should be a L<Git::Raw::TransferProgress> object. | ||
| 36 | |||
| 37 | =head2 hash( ) | ||
| 38 | |||
| 39 | Retrieve the packfile's hash. A packfile's name is derived from the sorted | ||
| 40 | hashing of all object names. This is only correct after the index has been | ||
| 41 | finalized. | ||
| 42 | |||
| 43 | =head1 AUTHOR | ||
| 44 | |||
| 45 | Jacques Germishuys <jacquesg@cpan.org> | ||
| 46 | |||
| 47 | =head1 LICENSE AND COPYRIGHT | ||
| 48 | |||
| 49 | Copyright 2016 Jacques Germishuys. | ||
| 50 | |||
| 51 | This program is free software; you can redistribute it and/or modify it | ||
| 52 | under the terms of either: the GNU General Public License as published | ||
| 53 | by the Free Software Foundation; or the Artistic License. | ||
| 54 | |||
| 55 | See http://dev.perl.org/licenses/ for more information. | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | 87 | 1; # End of Git::Raw::Indexer | |