diff options
| author | Anton Bobov <anton@bobov.name> | 2024-10-29 19:26:05 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-10-30 20:36:38 +0500 |
| commit | 0a77e934031c354b5c99d85c7524d194deecc69a (patch) | |
| tree | 3a44c368d151fb28497289cd18472f90a2845f89 /files/.gitconfig | |
| parent | 8cce3613dcd4fbe0eff3854e9813c8d08e01370a (diff) | |
git: Update difft config and alias
Diffstat (limited to 'files/.gitconfig')
| -rw-r--r-- | files/.gitconfig | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/files/.gitconfig b/files/.gitconfig index c03767e..d2d3cbd 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -23,10 +23,6 @@ tool = vimdiff colorMoved = true submodule = log -[difftool] - prompt = false -[difftool "difftastic"] - cmd = difft --background=light --color=always "$LOCAL" "$REMOTE" [diff-so-fancy] stripLeadingSymbols = false markEmptyLines = false @@ -56,9 +52,9 @@ diffstat = diff --stat -r dc = diff --find-copies-harder --cached di = diff --find-copies-harder - dft = difftool --tool=difftastic - dshow = "!f() { GIT_EXTERNAL_DIFF=difft DFT_BACKGROUND=light git show --ext-diff $@; }; f" - dlog = "!f() { GIT_EXTERNAL_DIFF=difft DFT_BACKGROUND=light git log -p --ext-diff $@; }; f" + dshow = "!f() { DFT_BACKGROUND=light git -c diff.external=difft show --ext-diff $@; }; f" + dlog = "!f() { DFT_BACKGROUND=light git -c diff.external=difft log -p --ext-diff $@; }; f" + ddiff = "!f() { DFT_BACKGROUND=light git -c diff.external=difft diff $@; }; f" fix = commit --amend -C HEAD try = merge --no-commit --no-ff history-all = "!gitk --all $( git fsck | awk '/dangling commit/ {print $3}'; git log -g --pretty='format:%H')" |
