git log 上色
This commit is contained in:
parent
e49b5d4644
commit
7169ff0910
|
|
@ -12,7 +12,7 @@ alias glt='git tag -n --sort=taggerdate | tail -n ${1-10}'
|
|||
gat() { git tag -a $1 -m "$2" }
|
||||
gam() { git add --all && git commit -m "$*" }
|
||||
gitlog() {
|
||||
git --no-pager log --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:$1 --graph -n ${2-10} \
|
||||
git --no-pager log --date=format:'%Y-%m-%d %H:%M' --pretty=format:$1 --graph -n ${2-10} \
|
||||
}
|
||||
gll() { gitlog "%h %s" $1 }
|
||||
glll() { gitlog "%h %cd %cn: %s" $1 }
|
||||
gll() { gitlog "%C(magenta)%h %C(cyan)%s%Creset" $1 }
|
||||
glll() { gitlog "%C(magenta)%h %C(yellow)%cd %Cblue%cn: %C(cyan)%s%Creset" $1 }
|
||||
|
|
|
|||
Loading…
Reference in New Issue