diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-12 14:31:38 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-12 14:31:39 -0800 |
commit | e886efdb342cee6722762e654ddc1fdee37315b5 (patch) | |
tree | e1298d35a6602cddaccb2dca0bb9835e74d30dbe /t | |
parent | bb87344a74119abeb2ca8c7f42f89ccad1ba6e32 (diff) | |
parent | cb357221a402c55b23bf99ec9f3b361709d45fa7 (diff) | |
download | git-e886efdb342cee6722762e654ddc1fdee37315b5.tar.gz |
Merge branch 'jk/colors-fix'
* jk/colors-fix:
t4026: test "normal" color
config: fix parsing of "git config --get-color some.key -1"
docs: describe ANSI 256-color mode
Diffstat (limited to 't')
-rwxr-xr-x | t/t4026-color.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4026-color.sh b/t/t4026-color.sh index 3726a0e201..63e423838f 100755 --- a/t/t4026-color.sh +++ b/t/t4026-color.sh @@ -53,6 +53,14 @@ test_expect_success '256 colors' ' color "254 bold 255" "[1;38;5;254;48;5;255m" ' +test_expect_success '"normal" yields no color at all"' ' + color "normal black" "[40m" +' + +test_expect_success '-1 is a synonym for "normal"' ' + color "-1 black" "[40m" +' + test_expect_success 'color too small' ' invalid_color "-2" ' |