(git) apply log format only to select subcommands

This commit is contained in:
zegonix
2026-05-15 08:43:27 +02:00
parent 491667764e
commit ff9ea823d0
+9 -5
View File
@@ -14,9 +14,13 @@
[include]
path = ~/.config/.gitconfig
[format]
pretty = tformat:%C(yellow)%h %C(blue)%as%C(auto)%d %C(reset)%s
[alias]
graph = log --oneline --all --graph
oneline = !git --no-pager log -20
graph = log \
--oneline \
--all \
--graph \
--pretty='tformat:%C(yellow)%h %C(blue)%as%C(auto)%d %C(reset)%s'
oneline = !git --no-pager log \
-n 20 \
--pretty='tformat:%C(yellow)%h %C(blue)%as%C(auto)%d %C(reset)%s'