From 3f44c6f51a4294e568c6053fc1f062c53f6dfa20 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 30 Jun 2016 23:03:06 -0400 Subject: [PATCH] gitconfig: refactor diff and merge tools --- gitconfig | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/gitconfig b/gitconfig index b43de4c8..d21bb318 100644 --- a/gitconfig +++ b/gitconfig @@ -1,33 +1,42 @@ [user] name = Henrik Lissner email = henrik@lissner.net + [github] user = hlissner + [core] excludesfile = ~/.gitignore whitespace = trailing-space - pager = less -r + [color] ui = true + [diff] - tool = vimdiff -[difftool] + tool = vdiff +[difftool "vdiff"] prompt = false cmd = vimdiff \"$LOCAL\" \"$REMOTE\" [difftool "ediff"] cmd = emacsclient -n --eval \"(ediff-files \\\"$LOCAL\\\" \\\"$REMOTE\\\")\" + [merge] # Include summaries of merged commits in newly created merge commit messages log = true - tool = ediff -[mergetool "ediff"] + tool = vmerge +[mergetool "vmerge"] + cmd = "vim -f $BASE $LOCAL $REMOTE $MERGED -c 'SpliceInit'" + trustExitCode = true +[mergetool "emerge"] cmd = emacsclient -c -a \"\" --eval \"(ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\")\" + [rebase] autosquash = true [push] default = simple [credential] helper = osxkeychain + [alias] root = rev-parse --show-toplevel undo-commit = reset --soft "HEAD^"