summaryrefslogtreecommitdiff
path: root/gitconfig
blob: ba29e4d0ae7308c40133df4bd0fde20394e2504e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# dotfiles -- gitconfig
# author: johannst

[user]
   email = johannes.stoelp@gmail.com
   name = johannst
[core]
   editor = vim
[color]
   ui = true
[diff]
   tool = vimdiff
[difftool]
   prompt = false
[log]
    date = short
[blame]
    date = relative
    coloring = highlightRecent
[format]
    # %h     abbreviated commit hash
    # %ad    author date (respects date format)
    # %aN    author name
    # %d     ref names, like the --decorate option
    # %s     commit message subject
    # %>(N)  set width, padd space on the left
    # %<(N)  set width, padd space on the right
    pretty = format:%C(auto)%h %C(blue)%>(10)%ad %C(green)%>(8)%aN %C(auto)%d %Creset%s
[alias]
   graph = log --graph --decorate --pretty=oneline --abbrev-commit --all