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 thetararchive format. It has support for all information, except for object ids.tar_gz(enabled by default) — Enable thetar.gzarchive format.zip(enabled by default) — Enable theziparchive format.
Structs§
- Options
- Options for configuring
write_stream().
Enums§
- Error
- The error returned by
write_stream(). - Format
- The supported container formats for use in
write_stream().
Functions§
- write_
stream - Write all stream entries in
streamas provided bynext_entry(stream)tooutconfigured according tooptswhich also includes the streaming format. - write_
stream_ seek - Like
write_stream(), but requiresstd::io::Seekforout.