.gitconfig

changeset 337
1aed142faa16
parent 336
a921d84589cf
child 338
296f4b036ae3
equal deleted inserted replaced
336:a921d84589cf 337:1aed142faa16
29 new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}" 29 new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}"
30 cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 echo git branch -d" 30 cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 echo git branch -d"
31 ctags = "!~/.git_helpers/ctags" 31 ctags = "!~/.git_helpers/ctags"
32 glog = log --graph --pretty=onelinecustom 32 glog = log --graph --pretty=onelinecustom
33 recent = !sh -c 'git for-each-ref --count=${1:-20} --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\"' "$@" 33 recent = !sh -c 'git for-each-ref --count=${1:-20} --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\"' "$@"
34 bre = !vim $(git diff --name-only @{u}..) 34 bre = !$EDITOR $@ $(git diff --name-only @{u}..)
35 brer = !vim --remote $(git diff --name-only @{u}..)
36 35
37 [pretty] 36 [pretty]
38 onelinecustom = tformat:%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset 37 onelinecustom = tformat:%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset
39 38
40 [branch] 39 [branch]

mercurial