3 ms·
Filter commands are defined in .git/config, not in .gitattributes.
by jwilk 8y ago
Filter commands are defined in .git/config, not in .gitattributes.
- Nullabillity 8y agoThey can be defined in either. For example, see https://www.agwa.name/projects/git-crypt/ https://www.agwa.name/projects/git-crypt/.
- jwilk 8y agoNo. That would be a grave security hole. In the git-crypt's case, "git-crypt init" adds this to your .git/config: [filter "git-crypt"] smudge = \"git-crypt\" smudge clean = \"git-crypt\" clean required = true
- Nullabillity 8y agoOh, interesting. Completely managed to miss that, thanks!