feat!: Don't display all branches by default in git lg

This commit is contained in:
kalmenn 2024-05-16 21:30:41 +02:00
parent a57111c2fd
commit 12e53506a4
Signed by: kalmenn
GPG key ID: F500055C44BC3834

2
config
View file

@ -33,7 +33,7 @@
# custom git log (inline) # custom git log (inline)
lgi = "!f() { \ lgi = "!f() { \
git log --graph --branches --all --date=human --color $@ \ git log --graph --date=human --color $@ \
--format='%C(bold dim green)%h%C(auto) - %C(yellow)%cr %C(bold)→%C(reset) %s%C(reset bold yellow)%d <an>%an</an> <sig>%G?</sig> <sn>%GS</sn> %C(reset)' | \ --format='%C(bold dim green)%h%C(auto) - %C(yellow)%cr %C(bold)→%C(reset) %s%C(reset bold yellow)%d <an>%an</an> <sig>%G?</sig> <sn>%GS</sn> %C(reset)' | \
sed \ sed \
-e 's#<an>\\(.*\\)</an> <sig>N</sig> <sn>.*</sn>#\\x1b[0;2;3;37m- \\1#' \ -e 's#<an>\\(.*\\)</an> <sig>N</sig> <sn>.*</sn>#\\x1b[0;2;3;37m- \\1#' \