Expand description
git-xcrypt init — make a repository ready to encrypt.
The hard part is not setting things up, it is deciding whether to. Four independent pieces of state exist (the key, the filter registration, the config file, the managed attributes section) and getting the decision wrong in one direction destroys the key. Three rules replace the sixteen cases:
- a key exists → never touch it, repair the rest;
- no key but traces of an earlier setup → refuse, this is a clone or a locked repository and a fresh key would strand every existing blob forever;
- no key and no traces → initialise.
Structs§
- Report
- What
initchanged, so it can tell the user rather than work in silence.
Functions§
- run
- Runs
initinrepo.