Skip to main content

Crate git_xcrypt

Crate git_xcrypt 

Source
Expand description

Logic behind the git-xcrypt binary.

The crate is split into a library and a thin binary so integration tests can drive the logic directly instead of only through a subprocess.

Nothing here may write to stdout. On the filter path git treats our stdout as the file content itself, so a stray println! silently corrupts a user’s file. Diagnostics go to stderr.

Modules§

commands
The user-facing commands.
crypto
The cipher, the two frozen file formats, and the key they share.
git
Everything that reads git, reproduces git, or talks to git.
rules
What the user declared, and what it decides about one file.
util
The two things every command needs and neither owns.

Enums§

Error
Errors returned by library operations.

Functions§

format_key_id
Formats a key fingerprint for display.

Type Aliases§

Result
Result alias for library operations.