added pretty format

This commit is contained in:
Tyrel Souza 2016-04-07 13:32:17 -04:00
parent fc10aae137
commit 05d37ba641
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5

View File

@ -23,10 +23,12 @@
prompt = false prompt = false
[difftool "delta"] [difftool "delta"]
cmd = delta \"$LOCAL\" \"$REMOTE\" \"$MERGED\" cmd = delta \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[format]
pretty = format:%C(auto)%h %C(cyan)%G? %C(green)%<(15,trunc)%aN %C(dim magenta)%<(15,trunc)%ar %C(white)%<(60,trunc)%s %C(auto)%d
[alias] [alias]
ls = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative ls = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
#files = log --numstat --pretty=format:"[%cn]"
files = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat files = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
files2 = log --numstat --pretty=format:"[%cn]"
logtree= "log --graph --oneline --decorate --all" logtree= "log --graph --oneline --decorate --all"
alias = "!git config -l | grep alias | cut -c 7-" alias = "!git config -l | grep alias | cut -c 7-"
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10" recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10"
@ -34,7 +36,6 @@
tabs = "!git diff --color | sed 's/\\t/⌑/g'" tabs = "!git diff --color | sed 's/\\t/⌑/g'"
v=describe --tags --match 'v*' v=describe --tags --match 'v*'
st = status st = status
ci = commit -v
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean %f clean = git-lfs clean %f
smudge = git-lfs smudge %f smudge = git-lfs smudge %f