Skip to main content

Module create

Module create 

Source
Expand description

Archive creation: classify the project, then write pack.toml followed by the payload into a zstd-compressed tar stream.

The .git directory is copied wholesale rather than converted to a git bundle. A bundle is built from an explicit set of refs, so everything outside that set — stashes, the reflog, dangling objects a rebase left behind — silently does not make the trip. Copying the directory removes the question entirely: whatever git had, the pack has.

Structs§

CreateOptions
Inputs for create.
CreateReport
What create produced.

Constants§

DEFAULT_COMPRESSION_LEVEL
Default zstd compression level.
PAYLOAD_PREFIX
Directory prefix under which payload entries are stored inside the archive.

Functions§

create
Pack a project root into a single archive.