Skip to content

Commit a3f3af3

Browse files
committed
feat: Add changelog alias in gitconfig
1 parent b379493 commit a3f3af3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitconfig

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@
102102
# log like - we like this summarization our key performance indicators. Also aliased as `log-like`.
103103
ll = log --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset %Cblue%G?%Creset'
104104

105+
# Changelog style
106+
changelog = "!f() { git --no-pager log --reverse --pretty=format:\"%s (%an) [%h]\" \"$@\" && echo; }; f"
107+
108+
105109
# get the short commit hash
106110
ref = rev-parse --short HEAD
107111
hash = ref

0 commit comments

Comments
 (0)