diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-22 03:50:34 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-22 03:50:34 +0300 |
commit | 35e6afd4c6bc73cba7bc279ff43b498389bf805a (patch) | |
tree | 9fb4d4137ada34fa48e2424ce56b52879a637611 /t | |
parent | a14f15427bca9af70127f26cd3cb0fcd78c8d36f (diff) | |
parent | 2c2dc7c82cea66c5030583233c73593e0f5a8fdb (diff) |
Merge branch 'jk/color-parse'
* jk/color-parse:
Optimize color_parse_mem
expand --pretty=format color options
color: make it easier for non-config to parse color specs
Diffstat (limited to 't')
-rwxr-xr-x | t/t6006-rev-list-format.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh index 86bf7e14ba..59d1f6283b 100755 --- a/t/t6006-rev-list-format.sh +++ b/t/t6006-rev-list-format.sh @@ -14,7 +14,7 @@ touch foo && git add foo && git commit -m "added foo" && test_format() { cat >expect.$1 test_expect_success "format $1" " -git rev-list --pretty=format:$2 master >output.$1 && +git rev-list --pretty=format:'$2' master >output.$1 && test_cmp expect.$1 output.$1 " } @@ -101,6 +101,13 @@ commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873 [31mfoo[32mbar[34mbaz[mxyzzy EOF +test_format advanced-colors '%C(red yellow bold)foo%C(reset)' <<'EOF' +commit 131a310eb913d107dd3c09a65d1651175898735d +[1;31;43mfoo[m +commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873 +[1;31;43mfoo[m +EOF + cat >commit-msg <<'EOF' Test printing of complex bodies |