]> git.rmz.io Git - dotfiles.git/commitdiff
git: add gpg decrypt filter for diff
authorSamir Benmendil <me@rmz.io>
Wed, 31 Aug 2022 21:30:54 +0000 (22:30 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 31 Aug 2022 21:30:54 +0000 (22:30 +0100)
This allows setting the gpg filter for pass diffs to be able to view the
actual password change in diff views.

git/config

index 926e1fb44a884abd7ad5eef19b2825c4d0869d82..a759c2e95004ba4e0c18886c1f912ced60fb8388 100644 (file)
@@ -11,6 +11,8 @@
        recurseSubmodules = check
 [diff]
        tool = vimdiff
+[diff "gpg"]
+       textconv = gpg --quiet --decrypt --use-agent
 [color "diff"]
        new = cyan bold
        old = red bold