diff options
author | Jakob Odersky <jakob@driver.xyz> | 2018-06-29 17:56:06 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-07-02 20:16:09 -0700 |
commit | fc21d41f477c35ad1a2ea4c29258c2e55ef237e3 (patch) | |
tree | 9beb3455c36b3521e1fcc566406ab86a12f86e9c /home/.gitconfig | |
parent | e457afccd30530153d075d0bbb41078fcecef669 (diff) | |
download | dotfiles-fc21d41f477c35ad1a2ea4c29258c2e55ef237e3.tar.gz dotfiles-fc21d41f477c35ad1a2ea4c29258c2e55ef237e3.tar.bz2 dotfiles-fc21d41f477c35ad1a2ea4c29258c2e55ef237e3.zip |
Git and i3 tweaks
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] |