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

Re: [PATCH 2/2] t7508-status: test all modes with color

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 8, 2009, 11:10 UTC
Message-ID
<hflc82$sf8$1@ger.gmane.org>
In-Reply-To
<39211ecec866882503d1188d359e1183341faeb1.1260266027.git.git@drmicha.warpmail.net>
Michael J Gruber wrote:
Show 8 quoted lines
> +decrypt_color () {
> +       sed \
> +               -e 's/.\[1m/<WHITE>/g' \
> +               -e 's/.\[31m/<RED>/g' \
> +               -e 's/.\[32m/<GREEN>/g' \
> +               -e 's/.\[34m/<BLUE>/g' \
> +               -e 's/.\[m/<RESET>/g'
> +}

Shouldn't this be better in test-lib.sh, or some common lib (lib-color.sh or color-lib.sh; we are unfortunately a bit inconsistent in naming here)?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Michael J GruberNext: Michael J Gruber
Message 4 of 9 in “Add a few more status tests”
  1. 0/2 Add a few more status testsMichael J Gruber, Dec 8, 2009
  2. 1/2 t7508-status: status --porcelain ignores relative paths settingMichael J Gruber, Dec 8, 2009
  3. 2/2 t7508-status: test all modes with colorMichael J Gruber, Dec 8, 2009
  4. Jakub NarebskiDec 8, 2009
  5. Michael J GruberDec 8, 2009
  6. Junio C HamanoDec 9, 2009
  7. Junio C HamanoDec 9, 2009
  8. Michael J GruberDec 9, 2009
  9. Junio C HamanoDec 9, 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.