Colorized git log
- From
Sean <seanlkml@sympatico.ca>
- Date
- Apr 21, 2005, 21:12 UTC
- Message-ID
- <3536.10.10.10.24.1114117965.squirrel@linux1>
On the off chance that someone else might like it, here is a pager script for the git log that adds a splash of color:
#!/bin/sh
git log "$@" | sed -re '
/.*signed-off-by.*/Is//\x1b[34m&\x1b[0m/
/^--*$/Is//\x1b[31m&\x1b[0m/
/^(commit|tree|parent) .*/Is//\x1b[32m&\x1b[0m/
/^author .*/Is//\x1b[36m&\x1b[0m/
/^committer .*/Is//\x1b[35m&\x1b[0m/' | less -RSean