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