.gitconfig

changeset 935
17d8ea40fb15
parent 918
09aadfdbc7dd
child 936
615fa36d953b
equal deleted inserted replaced
934:fb0cbf65b726 935:17d8ea40fb15
28 out = "!git log --pretty=onelinecustom @{u}.." 28 out = "!git log --pretty=onelinecustom @{u}.."
29 new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}" 29 new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}"
30 glog = log --graph --pretty=onelinecustom 30 glog = log --graph --pretty=onelinecustom
31 recent = "!f() { git for-each-ref --count=20 --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${1:-refs/heads} ${@:2}; }; f" 31 recent = "!f() { git for-each-ref --count=20 --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${1:-refs/heads} ${@:2}; }; f"
32 orphan = "!f() { git fsck --dangling | grep commit | cut -d' ' -f3 | xargs git show --compact-summary; }; f" 32 orphan = "!f() { git fsck --dangling | grep commit | cut -d' ' -f3 | xargs git show --compact-summary; }; f"
33 fork-point = merge-base --fork-point @{u}
33 34
34 [pretty] 35 [pretty]
35 onelinecustom = tformat:%C(magenta)%h%Creset %G? -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset 36 onelinecustom = tformat:%C(magenta)%h%Creset %G? -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset
36 37
37 [ui] 38 [ui]

mercurial