Skip to main content

Module repo

Module repo 

Source
Expand description

Locating the repository and reading its state — without spawning git.

Spawning is not an option: git starts a fresh filter process per operation and the binary is required to be self-contained, so every answer here comes from a library.

Structs§

Repo
A discovered repository.

Constants§

ATTRIBUTES_FILE
The attributes file git actually reads.
CONFIG_FILE
Name of the versioned configuration file listing what to encrypt.
DRIVER
Name of the filter driver as registered in .git/config.
KEY_ENVELOPE_DIR
Directory holding key envelopes, once recipients exist. Never encrypted.

Functions§

git_spelling
Renders a path the way git spells one: forward slashes on every platform.
lexically_normal
Resolves . and .. without touching the filesystem.
working_tree_path
The working-tree path an index entry names, without decoding it.