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

Re: [RFC] Colorize 'commit' lines in log ui

From
JGJan-Benedict Glaw <jbglaw@lug-owl.de>
Date
Jul 23, 2006, 11:24 UTC
Message-ID
<20060723112422.GB27825@lug-owl.de>
In-Reply-To
<20060723092417.GA7547@coredump.intra.peff.net>
On Sun, 2006-07-23 05:24:18 -0400, Jeff King <peff@peff.net> wrote:
Show 10 quoted lines
> @@ -33,7 +24,8 @@ static char diff_colors[][24] = {
>  	"\033[1m",	/* bold */
>  	"\033[36m",	/* cyan */
>  	"\033[31m",	/* red */
> -	"\033[32m"	/* green */
> +	"\033[32m",	/* green */
> +	"\033[33m"	/* yellow */
>  };
>  
>  static int parse_diff_color_slot(const char *var, int ofs)

If people only were used to *always* place a comma behind the last array element, the diff would be shorter by one line each time...

MfG, JBG
-- 
       Jan-Benedict Glaw       jbglaw@lug-owl.de                +49-172-7608481
 Signature of:                     ...und wenn Du denkst, es geht nicht mehr,
 the second  :                            kommt irgendwo ein Lichtlein her.
Previous: Jeff KingNext: Jeff King
Message 2 of 4 in “[RFC] Colorize 'commit' lines in log ui”
  1. Jeff KingJul 23, 2006
  2. Jan-Benedict GlawJul 23, 2006
  3. Jeff KingJul 23, 2006
  4. Junio C HamanoJul 24, 2006

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.