diff options
Diffstat (limited to 'home/.gitconfig')
-rw-r--r-- | home/.gitconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/home/.gitconfig b/home/.gitconfig index 686eef0..c8b324e 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -9,6 +9,7 @@ hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short lg = log --oneline --decorate --all --graph pr = "!f() { git fetch ${2:-upstream} pull/$1/head:pr/$1; }; f" + graph = "!f() { echo 'digraph git { node [fontsize = 10.0, shape = box];' ; git log --pretty='format: %H -> { %P }' \"$@\" | sed 's/[0-9a-f]\\{40\\}/\"&\"/g' ; git log --pretty='format: \"%H\" [ label = \"%h - %an - %ar\\n%f\" ]' \"$@\" ; echo '}'; }; f" [push] default = simple [core] |