[init]
  defaultBranch = main

[core]
  excludesfile = ~/.gitignore_global
  pager = delta

[user]
  name = Fabio Scotto di Santolo
  email = fabio.scottodisantolo@gmail.com

[fetch]
  prune = true

[remote "origin"]
  prune = true

[merge]
  conflictstyle = diff3

[color]
  ui = always

[color "status"]
  branch = magenta
  untracked = cyan
  unmerged = yellow bold

[color "diff"]
  frag = magenta bold
  old = red bold
  new = green bold
  whitespace = red reverse

[color "diff-highlight"]
  oldNormal = red bold
  oldHighlight = red bold 52
  newNormal = green bold
  newHighlight = green bold 52

[help]
  autocorrect = 30

[interactive]
  diffFilter = delta --color-only

[alias]
  lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)%n' --all
  onelinegraph = log --oneline --graph --decorate
  expireunreachablenow = reflog expire --expire-unreachable=now --all
  gcunreachablenow = gc --prune=now
  ld = log -p
  undo = reset --soft HEAD~1
  stash-all = stash save --include-untracked
  glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'

[include]
  path = ~/.themes.gitignore

[delta]
  features = catppuccin-frappe navigate hyperlinks
  true-color = always
  colorMoved = default
  tabs = 4
  side-by-side = true
