Skip to main content

Module sync

Module sync 

Source
Expand description

git-xcrypt sync — regenerate the cosmetic lines in .gitattributes.

Only the cosmetic lines. The catch-all line above them is static, written once by init, and carries the whole security guarantee; nothing here can make it stale, which is the point of the construction. Forgetting to run sync therefore costs a worse git diff, never a secret.

--check exists so a CI job can say “the section is out of date” without writing to the working tree.

Structs§

Report
What sync did, plus anything the configuration file is worth warning about.

Enums§

Outcome
What sync found, and what it did about it.

Functions§

run
Runs sync in repo, writing unless check is set.