[PATCH 1/2] t6006: clean up whitespace
From: Junio C Hamano The test_format function did not indent its in-line test script in an attempt to make the output of the test look better. But it does not make a big difference to the output, and the source looks quite ugly. Let's use our normal indenting instead. Signed-off-by: Jeff King --- t/t6006-rev-list-format.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh index f94f0c4..c0c62c9 100755 --- a/t/t6006-rev-list-format.sh +++ b/t/t6006-rev-list-format.sh @@ -11,12 +11,12 @@ test_format() { ' # usage: test_format name format_string expect.$1 test_expect_success "format $1" " -git rev-list --pretty=format:'$2' master >output.$1 && -test_cmp expect.$1 output.$1 -" + git rev-list --pretty=format:'$2' master >output.$1 && + test_cmp expect.$1 output.$1 + " } test_format percent %%h <<'EOF' -- 1.8.1.rc2.28.gce0611a -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 1/2] t6006: clean up whitespace
The test_format function did not indent its in-line test script in an attempt to make the output of the test look better. But it does not make a big difference to the output, and the source looks quite ugly. Let's use our normal indenting instead. Signed-off-by: Jeff King --- t/t6006-rev-list-format.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh index f94f0c4..c0c62c9 100755 --- a/t/t6006-rev-list-format.sh +++ b/t/t6006-rev-list-format.sh @@ -11,12 +11,12 @@ test_format() { ' # usage: test_format name format_string expect.$1 test_expect_success "format $1" " -git rev-list --pretty=format:'$2' master >output.$1 && -test_cmp expect.$1 output.$1 -" + git rev-list --pretty=format:'$2' master >output.$1 && + test_cmp expect.$1 output.$1 + " } test_format percent %%h <<'EOF' -- 1.8.1.rc2.28.gce0611a -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/2] t6006: clean up whitespace
On Mon, Dec 17, 2012 at 05:55:52PM -0500, Junio C Hamano wrote: > From: Junio C Hamano > To: Junio C Hamano > > The test_format function did not indent its in-line test > script in an attempt to make the output of the test look > better. But it does not make a big difference to the output, > and the source looks quite ugly. Let's use our normal > indenting instead. > > Signed-off-by: Jeff King Argh. This is me accidentally impersonating Junio because my home-grown send-email replacement does not grok patches by other authors properly. Sorry for the noise; I've just resent with a proper header. I should probably fix my script before I embarrass myself again with it... -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html