New colors for git lgi and lg. Also, now refs come before gpg output

This commit is contained in:
kale 2024-01-10 11:55:59 +01:00
parent 8e88602784
commit 26c869b714
Signed by: kalmenn
GPG key ID: F500055C44BC3834

2
config
View file

@ -35,7 +35,7 @@
# sed part courtesy of: https://stackoverflow.com/questions/17371955/verifying-signed-git-commits/32038784#comment124980964_32038784
lgi = "!f() { \
git log --graph --branches --all --date=human --color $@ \
--format='%C(bold dim green)%h%C(auto) - %C(yellow)%<(12)%cr %C(bold)→%C(reset) %s%C(dim white) - %an <sig>%G?</sig>%C(reset dim green)%GS%C(reset cyan)%d%C(reset)' | \
--format='%C(bold dim green)%h%C(auto) - %C(yellow)%<(12)%cr %C(bold)→%C(reset) %s%C(bold black) - %an%C(reset bold yellow)%d %C(reset)<sig>%G?</sig>%C(reset dim white)%GS%C(reset)' | \
sed \
-e 's#<sig>G</sig>#\\x1b[1;32mGood Signature: #' \
-e 's#<sig>B</sig>#\\x1b[1;31mBAD#' \