From 7169ff0910de6716c6006c47044158b17582c364 Mon Sep 17 00:00:00 2001 From: chenyc Date: Wed, 14 Dec 2022 15:41:35 +0800 Subject: [PATCH] =?UTF-8?q?git=20log=20=E4=B8=8A=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/git.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/git.zsh b/config/git.zsh index a754b46..9536cf6 100644 --- a/config/git.zsh +++ b/config/git.zsh @@ -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 }