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

Re: [PATCH] show-branch: color the commit status signs

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Apr 22, 2009, 20:45 UTC
Message-ID
<200904222245.24034.markus.heidelberg@web.de>
In-Reply-To
<780e0a6b0904221226s43a40a12k8bf83de12fa7815d@mail.gmail.com>
Stephen Boyd, 22.04.2009:
Show 10 quoted lines
> On Tue, Apr 21, 2009, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> > +--color::
> > +       Color the status sign of the commits. Each branch uses a single color.
> 
> I don't know what the status sign of a commit is without reading your commit
> message. Maybe reword this to be:
> 
> Color the status sign ('*' '!' '+' '-') of each commit corresponding
> to the branch
> it's in.

I had some problems with finding the right words for the description and still wasn't satisfied with it. I think your suggestion makes it easier and will include it.

Show 13 quoted lines
> > +static char column_colors[][COLOR_MAXLEN] = {
> > +       GIT_COLOR_RED,
> > +       GIT_COLOR_GREEN,
> > +       GIT_COLOR_YELLOW,
> > +       GIT_COLOR_BLUE,
> > +       GIT_COLOR_MAGENTA,
> > +       GIT_COLOR_CYAN,
> > +};
> > +
> > +#define COLUMN_COLORS_MAX (ARRAY_SIZE(column_colors))
> 
> This looks like a copy/paste (with a small edit) from graph.c so maybe you
> want to refactor the original code from graph.c to color.h?
How exactly do you think it can be refactored and then combined?
Markus
Previous: Stephen BoydNext: Junio C Hamano
Message 3 of 5 in “show-branch: color the commit status signs”
  1. show-branch: color the commit status signsMarkus Heidelberg, Apr 21, 2009
  2. Stephen BoydApr 22, 2009
  3. Markus HeidelbergApr 22, 2009
  4. Junio C HamanoApr 22, 2009
  5. show-branch: color the commit status signsMarkus Heidelberg, Apr 22, 2009

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.