diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-12 14:29:30 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-12 14:29:30 +0800 |
| commit | 1c1f7605246a1a9cbe9248224c8862be2b360107 (patch) | |
| tree | eb5e4afade113abbb0870d781db84c153a03fa61 /dot-gitconfig | |
| parent | 4dba3e0ea44a2251afb7661252323b256936611d (diff) | |
bump
Diffstat (limited to 'dot-gitconfig')
| -rw-r--r-- | dot-gitconfig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dot-gitconfig b/dot-gitconfig index fa49189c..927ef0a9 100644 --- a/dot-gitconfig +++ b/dot-gitconfig @@ -40,3 +40,31 @@ [merge "mergiraf"] name = mergiraf driver = mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P -l %L +[diff] + # Set difftastic as the default difftool, so we don't need to specify + # `-t difftastic` every time. + tool = difftastic + external = difft --color=auto# --display=inline +[difftool "difftastic"] + # See `man git-difftool` for a description of MERGED, LOCAL and REMOTE. + cmd = difft "$MERGED" "$LOCAL" "abcdef1" "100644" "$REMOTE" "abcdef2" "100644" +[difftool] + # Run the difftool immediately, don't ask 'are you sure' each time. + prompt = false + +[pager] + # Use a pager if the difftool output is larger than one screenful, + # consistent with the behaviour of `git diff`. + diff = delta + log = delta + reflog = delta + show = delta + difftool = true + +[interactive] + diffFilter = delta --color-only + +[delta] + navigate = true + side-by-side = true + line-numbers = true |
