diff options
author | listout <listout@protonmail.com> | 2022-01-30 21:43:42 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2022-01-30 21:43:42 +0530 |
commit | 15fbcd8e925fb3a0adcde696c1a5c53c02826bbf (patch) | |
tree | 21a6a53533de9e3d33b6823c9e649cfb13c3ce1e /.config/git/config | |
parent | 1ed13a50aba8b4fbc390d2272e299695eea922bc (diff) |
Follow XDG Base directory
Diffstat (limited to '.config/git/config')
-rw-r--r-- | .config/git/config | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config new file mode 100644 index 0000000..eaa4afe --- /dev/null +++ b/.config/git/config @@ -0,0 +1,32 @@ +[core] + pager = nvim -R - +[color] + ui = false +[commit] + gpgsign = true +[merge] + tool = vimdiff +[mergetool] + prompt = true +[mergetool "vimdiff"] + cmd = nvim -d $LOCAL $REMOTE +[difftool] + prompt = false +;[pager] + ;diff = +[diff] + tool = vimdiff + ;external = $HOME/.local/bin/vim_wrapper.sh +[user] + email = listout@protonmail.com + name = listout +[alias] + # list files which have changed since REVIEW_BASE + # (REVIEW_BASE defaults to 'master' in my zshrc) + files = !git diff --name-only $(git merge-base HEAD \"$REVIEW_BASE\") + + # Same as above, but with a diff stat instead of just names + # (better for interactive use) + stat = !git diff --stat $(git merge-base HEAD \"$REVIEW_BASE\") + d = diff + dt = difftool |