Next: , Previous: , Up: FAQ - How to …?   [Contents][Index]

A.1.3 How to show diffs for gpg-encrypted files?

Git supports showing diffs for encrypted files, but has to be told to do so. Since Magit just uses Git to get the diffs, configuring Git also affects the diffs displayed inside Magit.

git config --global diff.gpg.textconv "gpg --no-tty --decrypt"
echo "*.gpg filter=gpg diff=gpg" > .gitattributes