[alias] # `git log` with patches shown with difftastic. dl = -c diff.external=difft log -p --ext-diff # Show the most recent commit with difftastic. ds = -c diff.external=difft show --ext-diff # `git diff` with difftastic. dft = -c diff.external=difft diff ci = commit --all st = status [core] editor = nvim quotepath = false autocrlf = false pager = delta safecrlf = false symlinks = true fscache = true preloadIndex = true [help] format = html [color] interactive = true ui = auto [rebase] autosquash = true [diff] colorMoved = default tool = difftastic [difftool] prompt = false [difftool "meld"] cmd = "meld \"$LOCAL\" \"$REMOTE\"" [difftool "difftastic"] cmd = "difft \"$LOCAL\" \"$REMOTE\"" [pager] difftool = true [merge] tool = vim [mergetool] keepBackup = false prompt = false [mergetool "meld"] cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" " [mergetool "vim"] cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" " [push] autoSetupRemote = true default = "upstream" [pull] rebase = false [interactive] diffFilter = delta --color-only [delta] side-by-side = true line-numbers = true decorations = true navigate = true syntax-theme = none [interactive] diffFilter = delta --color-only [init] defaultBranch = trunk [commit] verbose = true [help] # try to automatically correct mispelled git commands autocorrect = 1 [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`. difftool = true [diff] # Set difftastic as the default difftool, so we don't need to specify # `-t difftastic` every time. tool = difftastic # In order to have host-specific configuration, I include additional settings here. # On each host a different file might be symlinked into '.gitconfig.include'. [include] path = .gitconfig.include