This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/git/config

67 lines
1.3 KiB
Plaintext
Raw Normal View History

# {{@@ header() @@}}
# ____ _ _
# / ___(_) |_
# | | _| | __|
# | |_| | | |_
# \____|_|\__|
[user]
name = {{@@ username @@}}
email = {{@@ mail.personal.user @@}}
2020-10-27 20:26:15 +01:00
[init]
defaultBranch = main
[commit]
verbose = true
2020-10-24 19:35:45 +02:00
[pull]
rebase = true
2020-11-29 20:17:40 +01:00
2021-04-18 20:00:33 +02:00
[merge]
conflictStyle = diff3
2022-05-18 21:06:37 +02:00
[rerere]
enabled = true
[rebase]
2021-06-23 07:05:49 +02:00
abbreviateCommands = true
autoSquash = true
autoStash = true
2020-11-29 20:17:40 +01:00
[pager]
2020-12-01 20:17:56 +01:00
# differ is a program that shows word-by-word diff
2021-04-24 00:59:06 +02:00
#{%@@ if editor == "kak" @@%}#
2022-02-10 02:47:37 +01:00
log = _diffr | kak-pager
show = _diffr | kak-pager
diff = _diffr | kak-pager
2021-04-24 00:59:06 +02:00
#{%@@ else @@%}#
2022-02-10 02:47:37 +01:00
log = _diffr | less
show = _diffr | less
diff = _diffr | less
2021-04-24 00:59:06 +02:00
#{%@@ endif @@%}#
2020-12-07 02:10:51 +01:00
2021-02-21 23:09:16 +01:00
[alias]
2022-10-24 22:32:37 +02:00
graph = log --graph --oneline --branches
2021-03-23 15:58:08 +01:00
root = rev-parse --show-toplevel
2021-02-21 23:09:16 +01:00
2020-12-07 02:10:51 +01:00
{%@@ if tabs @@%}
[filter "tabspace"]
smudge = unexpand --tabs={{@@ indent_width @@}} --first-only
clean = expand --tabs={{@@ indent_width @@}} --initial
2020-12-07 02:10:51 +01:00
{%@@ endif @@%}
2021-02-21 05:28:50 +01:00
[core]
excludesfile = {{@@ _dotfile_abs_dst @@}}/ignore
2021-04-21 17:11:47 +02:00
; hooksPath = {{@@ _dotfile_abs_dst @@}}/hooks/
2021-02-21 05:28:50 +01:00
2022-04-07 21:27:13 +02:00
[includeIf "gitdir:~/Projects/"]
path = {{@@ _dotfile_abs_dst @@}}/config-personal
[includeIf "gitdir:~/Wopus/"]
path = {{@@ _dotfile_abs_dst @@}}/config-work
2021-03-22 20:13:32 +01:00
# vim: ft=ini