Allow difffing of rails credential files
From: https://stackoverflow.com/questions/49514426/how-can-i-git-diff-changes-to-rails-5-2-credentials/50466819#50466819
This commit is contained in:
parent
5d7a97c884
commit
62adfc7b68
2 changed files with 5 additions and 0 deletions
1
gitattributes_global
Normal file
1
gitattributes_global
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.yml.enc diff=enc
|
|
@ -34,6 +34,7 @@
|
||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
excludesfile = ~/.gitignore_global
|
excludesfile = ~/.gitignore_global
|
||||||
|
attributesfile = ~/.gitattributes_global
|
||||||
filemode = false
|
filemode = false
|
||||||
[gpg]
|
[gpg]
|
||||||
program = gpg
|
program = gpg
|
||||||
|
@ -47,3 +48,6 @@
|
||||||
[transfer]
|
[transfer]
|
||||||
fsckobjects = false
|
fsckobjects = false
|
||||||
# https://groups.google.com/forum/#!topic/binary-transparency/f-BI4o8HZW0
|
# https://groups.google.com/forum/#!topic/binary-transparency/f-BI4o8HZW0
|
||||||
|
[diff "enc"]
|
||||||
|
textconv = bundle exec rails encrypted:show
|
||||||
|
cachetextconv = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue