31 Dec 2019 01:00:44 UTC
- Distribution: Git-FastExport
- Module version: 0.108
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (4)
- Testers (320 / 0 / 0)
- KwaliteeBus factor: 1
- 89.53% Coverage
- License: perl_5
- Activity24 month
- Download (29.57KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:BOOK Philippe Bruhat (BooK)
Git::FastExport::Block - A block in a fast-export stream
This package is used internally by Git::FastExport.
Git::FastExport::Block represents blocks from a git fast-export stream.
Internally, it is a simple hash with keys pointing either to a string or a reference to an array of strings, which makes it very easy to edit (when obtained via Git::FastExport
next_block()method) or create blocks in a git fast-export stream.
The following two keys are pointing to strings:
first line of the block
content of the block data section
All the other keys are pointing to references to arrays of strings (each string representing a line in the fast-export stream:
Of course, which keys are present depend on the type of the block, which is conveniently stored in the
All other keys are ignored by
A Git::FastExport::Block structure is meant to be used as a hash, and is not protected by an accessor/mutator interface. Or a constructor.
However, the module provides a method for outputing blocks:
Return the block as a string suitable for git fast-import.
The original version of this module was created as part of my work for BOOKING.COM, which authorized its publication/distribution under the same terms as Perl itself.
Philippe Bruhat (BooK) <email@example.com>
Copyright 2008-2016 Philippe Bruhat (BooK), All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Git::FastExport, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Git::FastExport
For more information on module installation, please visit the detailed CPAN module installation guide.