Teach git diff about sops files

This commit is contained in:
Gene Liverman 2024-08-27 11:26:29 -04:00
parent 6803b2cc53
commit 62130cf13e
2 changed files with 5 additions and 0 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
*.yaml diff=sopsdiffer

View file

@ -97,6 +97,9 @@ in {
git = { git = {
enable = true; enable = true;
diff-so-fancy.enable = true; diff-so-fancy.enable = true;
extraConfig = {
diff.sopsdiffer.textconv = "sops --config /dev/null --decrypt";
};
ignores = [ ignores = [
"*~" "*~"
"*.swp" "*.swp"