From 4a0c23926780573350def33ded4209782e97ca22 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 19 Dec 2018 14:23:47 -0800 Subject: [PATCH] [git] reorder mergetools in config --- .gitconfig | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitconfig b/.gitconfig index 7df7693..9b984c3 100644 --- a/.gitconfig +++ b/.gitconfig @@ -24,20 +24,14 @@ prompt = false [difftool "sourcetree"] cmd = opendiff \"$LOCAL\" \"$REMOTE\" -[mergetool "sourcetree"] - cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" - trustExitCode = true -[push] - default = current - followTags = true - recurseSubmodules = on-demand [difftool "kaleidoscope"] cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\" -[mergetool "kaleidoscope"] - cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot - trustExitCode = true [difftool "icdiff"] cmd = icdiff --line-numbers --no-bold \"$LOCAL\" \"$REMOTE\" +[push] + default = current + followTags = true + recurseSubmodules = on-demand [grep] extendRegexp = true lineNumber = true @@ -48,6 +42,13 @@ [merge] conflictstyle = diff3 ff = false + tool = vimdiff +[mergetool "sourcetree"] + cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" + trustExitCode = true +[mergetool "kaleidoscope"] + cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot + trustExitCode = true [init] templatedir = ~/.git_templates [diff]