Files
nix-dotfiles/.gitconfig
ahuston-0 0f3e1b3e36
All checks were successful
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 8s
Check Nix flake / Perform Nix flake checks (pull_request) Successful in 3m5s
sops mergetool fixes
2026-05-02 13:02:41 -04:00

10 lines
504 B
INI

# run `grep -Pv "^#" .gitconfig >> .git/config` to append the merge config to your repo file :)
# run `git mergetool --tool=sops-mergetool <path to secret>/secrets.yaml` to use this once configured
# the command below intentionally avoids nested shell quoting because git config parsing is strict
[mergetool "sops-mergetool"]
cmd = $(git rev-parse --show-toplevel)/utils/sops-mergetool.sh $BASE $LOCAL $REMOTE $MERGED
[merge]
tool = nvimdiff
[mergetool "nvimdiff"]
layout = (LOCAL,BASE,REMOTE)/MERGED