Expand description
What the user declared, and what it decides about one file.
declaration parses .git-xcrypt; decide turns it into the one
answer the filter needs — encrypt or pass through — and must stay a pure
function of content and declaration, because lock depends on it producing
exactly the bytes git stores. eol is the line-ending half of that
answer, including the text/binary rule frozen with the file format.
Modules§
- decide
- The one place where “encrypt this or pass it through” is decided.
- declaration
- The
.git-xcryptfile: which paths are encrypted, and how line endings are handled. - eol
- Line endings — the part git normally does, which we have to do ourselves.