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

[PATCH v2 0/2] redo fix for test-lib.sh color support

From
RHRichard Hansen <rhansen@bbn.com>
Date
Jun 17, 2015, 21:11 UTC
Message-ID
<1434575481-24604-1-git-send-email-rhansen@bbn.com>
In-Reply-To
<xmqqvbem5bx9.fsf@gitster.dls.corp.google.com>
Changes from v1:
  * Eliminate the case statement and assume the user passed a sane
    value for $1.
  * Use the same test as the non-colorized version of say_color() when
    determining whether to suppress the output:  assume that a message
    can only be suppresed if $1 is the empty string.  This avoids the
    need to test whether the variable say_color_$1 is set.
  * Rename say_color_sgr0 to say_color_reset.
  * Add a new variable say_color_ (set to the empty string) as a way
    of documenting that $1 is expected to be the empty string for
    normal text.
Richard Hansen (2):
  Revert "test-lib.sh: do tests for color support after changing HOME"
  test-lib.sh: fix color support when tput needs ~/.terminfo
 t/test-lib.sh | 99 ++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 52 deletions(-)
-- 
2.4.3
Previous: Junio C HamanoNext: Richard Hansen
Message 7 of 13 in “redo fix for test-lib.sh color support”
  1. 0/2 redo fix for test-lib.sh color supportRichard Hansen, Jun 17, 2015
  2. 1/2 Revert "test-lib.sh: do tests for color support after changing HOME"Richard Hansen, Jun 17, 2015
  3. 2/2 test-lib.sh: fix color support when tput needs ~/.terminfoRichard Hansen, Jun 17, 2015
  4. Jeff KingJun 17, 2015
  5. Richard HansenJun 17, 2015
  6. Junio C HamanoJun 17, 2015
  7. 0/2 redo fix for test-lib.sh color supportRichard Hansen, Jun 17, 2015
  8. 1/2 Revert "test-lib.sh: do tests for color support after changing HOME"Richard Hansen, Jun 17, 2015
  9. 2/2 test-lib.sh: fix color support when tput needs ~/.terminfoRichard Hansen, Jun 17, 2015
  10. Jeff KingJun 17, 2015
  11. Junio C HamanoJun 17, 2015
  12. Jeff KingJun 17, 2015
  13. Jeff KingJun 17, 2015

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.