mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 05:14:53 -06:00
Add .gitconfig enabling diff'ing for encrypted .age files
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -8,3 +8,4 @@ dot_gitconfig linguist-language=TOML linguist-detectable
|
||||
*.toml linguist-detectable
|
||||
*.toml.tmpl linguist-language=TOML linguist-detectable
|
||||
*.cfg.tmpl linguist-language=INI linguist-detectable
|
||||
*.age diff=age
|
||||
2
.gitconfig
Normal file
2
.gitconfig
Normal file
@@ -0,0 +1,2 @@
|
||||
[diff "age"]
|
||||
textconv = "age -d -i ~/key.txt"
|
||||
6
home/run_onchange_gitconfig.sh.tmpl
Normal file
6
home/run_onchange_gitconfig.sh.tmpl
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# We just need to have access to the Git repository
|
||||
cd {{ .chezmoi.sourceDir }}
|
||||
# The path is relative to the .git/config file
|
||||
git config --local include.path ../.gitconfig
|
||||
Reference in New Issue
Block a user