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]
|
||||
autocrlf = input
|
||||
excludesfile = ~/.gitignore_global
|
||||
attributesfile = ~/.gitattributes_global
|
||||
filemode = false
|
||||
[gpg]
|
||||
program = gpg
|
||||
|
@ -47,3 +48,6 @@
|
|||
[transfer]
|
||||
fsckobjects = false
|
||||
# https://groups.google.com/forum/#!topic/binary-transparency/f-BI4o8HZW0
|
||||
[diff "enc"]
|
||||
textconv = bundle exec rails encrypted:show
|
||||
cachetextconv = false
|
||||
|
|
Loading…
Reference in a new issue