Skip to content

Commit

Permalink
Merge pull request #1 from YichaoDeng/fix-gitlog-format
Browse files Browse the repository at this point in the history
更新gitlog的format格式
  • Loading branch information
yaocccc authored Jan 24, 2023
2 parents a2841ec + 76bbc4b commit e6fd5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/git.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit e6fd5ab

Please sign in to comment.