snapdir id

Print the manifest ID of a directory or a manifest piped via stdin.

The ID is the content address of the snapshot: the same tree always yields the same ID. See Content addressing.

Usage

snapdir id [OPTIONS] [PATH]

Arguments

Argument Description
[PATH] Directory to describe (omit to read a manifest from stdin).

Options

id accepts the global options, notably --checksum, --exclude, and --paths.

Examples

Print the ID of a directory:

snapdir id ./project

Pipe a manifest in to compute its ID without re-walking the tree:

snapdir manifest ./project | snapdir id

See also