Files
dotfiles/.config/git/config
druckdev 7e0e0f5baf git: Enable jumps between different files in diff
Jump between file sections and commits by using n and N. Taken from:
https://github.com/so-fancy/diff-so-fancy/blob/eef379ee43f86/pro-tips.md

Remove FX flags since they are incompatible with the pattern search:
When showing a small change that fits on less than the screen height,
the rest of the screen is filled with ~ lines instead of quitting the
pager. This behaviour is annoying and thus the flags are deactivated.
Since git adds them per default they have to be explicitly disabled.
2020-09-24 03:24:56 +02:00

26 lines
634 B
Plaintext

[include]
path = gitlab.config
[includeIf "gitdir:~/Projects/github/"]
path = github.config
[include]
path = user.config
[commit]
gpgsign = true
[difftool "meld"]
path = /usr/bin/meld
[color "status"]
added = 076
untracked = 014
[core]
pager = diff-so-fancy | less --tabs=8 -RG -+FX -p'^(Date|added|deleted|modified): '
excludesfile = ~/.config/git/ignore
[alias]
root = rev-parse --show-toplevel
spull = "__git_spull() { git pull \"$@\" && git submodule sync --recursive && git submodule update --init --recursive; }; __git_spull"
[status]
submodulesummary = true
[diff]
submodule = log
[rebase]
autostash = true