Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Filter commands are defined in .git/config, not in .gitattributes.


They can be defined in either. For example, see https://www.agwa.name/projects/git-crypt/.


No. 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


Oh, interesting. Completely managed to miss that, thanks!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: