git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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 -R
Sean
Next: Petr Baudis
Message 1 of 6 in “Colorized git log”
  1. SeanApr 21, 2005
  2. Petr BaudisApr 21, 2005
  3. Colorized git logDaniel Serpell, Apr 22, 2005
  4. Petr BaudisApr 22, 2005
  5. Daniel SerpellApr 22, 2005
  6. Steven ColeApr 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.