From 76bbc4b90a01b182d8e6cff8624f67e293641243 Mon Sep 17 00:00:00 2001 From: YichaoDeng Date: Sat, 21 Jan 2023 18:35:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0gitlog=E7=9A=84format?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/git.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/git.zsh b/config/git.zsh index c5d84f8..a720339 100644 --- a/config/git.zsh +++ b/config/git.zsh @@ -17,7 +17,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' --pretty=format:$1 --graph -n ${2-10} \ + git --no-pager log --date=format:'%Y-%m-%d %H:%M' --pretty=tformat:$1 --graph -n ${2-10} \ } gll() { gitlog "%C(${hashColor})%h %C(${contentColor})%s%Creset" $1 } glll() { gitlog "%C(${hashColor})%h %C(${dateColor})%cd %C(${authorColor})%cn: %C(${contentColor})%s%Creset" $1 }