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

Re: [PATCH] status: show branchname with a configurable color

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 1, 2010, 22:06 UTC
Message-ID
<7vlj49tafw.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1290037205-19470-1-git-send-email-aga@iki.fi>
aga@iki.fi writes:
Show 16 quoted lines
>  color.status.<slot>::
> -	Use customized color for status colorization. `<slot>` is
> -	one of `header` (the header text of the status message),
> -	`added` or `updated` (files which are added but not committed),
> -	`changed` (files which are changed but not added in the index),
> -	`untracked` (files which are not tracked by git), or
> -	`nobranch` (the color the 'no branch' warning is shown in, defaulting
> -	to red). The values of these variables may be specified as in
> -	color.branch.<slot>.
> +	Use customized color for status colorization. `<slot>` is one of
> +	`header` (the header text of the status message), `added` or `updated`
> +	(files which are added but not committed), `changed` (files which
> +	are changed but not added in the index), `untracked` (files which
> +	are not tracked by git), `branch` (the current branch) or `nobranch`
> +	(the color the 'no branch' warning is shown in, defaulting to red). The
> +	values of these variables may be specified as in color.branch.<slot>.
Yuck.  Why did you have to re-wrap the paragraph to make diff unreadable?

It also is customary to make the default plain, so that existing users won't suddenly get a new and funky behaviour.

I'll queue with a slight rearrangement.
Thanks.
Previous: aga@iki.fi
Message 2 of 2 in “status: show branchname with a configurable color”
  1. status: show branchname with a configurable coloraga@iki.fi, Nov 17, 2010
  2. Junio C HamanoDec 1, 2010

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.