Crate gix_archive
source ·Expand description
The implementation of creating an archive from a worktree stream, similar to git archive
.
Deviation
This implementation is early and just does the basics. Git does more to support more context when filtering and to keep
more information about entries in the various archive formats.
tar
is implemented in a very basic fashion only.
Feature Flags
All features are related to which container formats are available.
tar
(enabled by default) — Enable thetar
archive format. It has support for all information, except for object ids.tar_gz
(enabled by default) — Enable thetar.gz
archive format.zip
(enabled by default) — Enable thezip
archive format.
Structs
- Options for configuring
write_stream()
.
Enums
- The error returned by
write_stream()
. - The supported container formats for use in
write_stream()
.
Functions
- Write all stream entries in
stream
as provided bynext_entry(stream)
toout
configured according toopts
which also includes the streaming format.