From ff9ea823d0ac165edf87163bf39749a43178aaee Mon Sep 17 00:00:00 2001 From: zegonix Date: Fri, 15 May 2026 08:43:27 +0200 Subject: [PATCH] (git) apply log format only to select subcommands --- gitconfig/.gitconfig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gitconfig/.gitconfig b/gitconfig/.gitconfig index df7fafd..cd51a30 100644 --- a/gitconfig/.gitconfig +++ b/gitconfig/.gitconfig @@ -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'