{"thread":{"id":"30998","subject":"[PATCH 1/6] t4012: Use different style for quoting","startedAt":"2012-07-11T22:12:03Z","lastAt":"2012-07-11T22:12:03Z","messageCount":1,"participants":["Alexander Strasser"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"194939","messageId":"20120711221203.GA21316@akuma","threadId":"30998","inReplyTo":null,"subject":"[PATCH 1/6] t4012: Use different style for quoting","fromName":"Alexander Strasser","fromEmail":"eclipse7@gmx.net","sentAt":"2012-07-11T22:12:03Z","receivedAt":"2012-07-11T22:12:03Z","isPatch":true,"sender":{"key":"eclipse7@gmx.net","avatar":"https://avatars.githubusercontent.com/u/4342576?v=4"},"body":"This quoting style is used by all newly added test code.\n\nSigned-off-by: Alexander Strasser <eclipse7@gmx.net>\n---\n t/t4012-diff-binary.sh | 35 ++++++++++++++++++++---------------\n 1 file changed, 20 insertions(+), 15 deletions(-)\n\ndiff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh\nindex 6cebb39..2a8b68e 100755\n--- a/t/t4012-diff-binary.sh\n+++ b/t/t4012-diff-binary.sh\n@@ -15,13 +15,14 @@ cat >expect.binary-numstat <<\\EOF\n -\t-\td\n EOF\n \n-test_expect_success 'prepare repository' \\\n-\t'echo AIT >a && echo BIT >b && echo CIT >c && echo DIT >d &&\n+test_expect_success 'prepare repository' '\n+\t echo AIT >a && echo BIT >b && echo CIT >c && echo DIT >d &&\n \t git update-index --add a b c d &&\n \t echo git >a &&\n \t cat \"$TEST_DIRECTORY\"/test-binary-1.png >b &&\n \t echo git >c &&\n-\t cat b b >d'\n+\t cat b b >d\n+'\n \n cat > expected <<\\EOF\n  a |    2 +-\n@@ -62,8 +63,8 @@ test_expect_success 'apply --numstat understands diff --binary format' '\n \n # apply needs to be able to skip the binary material correctly\n # in order to report the line number of a corrupt patch.\n-test_expect_success 'apply detecting corrupt patch correctly' \\\n-\t'git diff | sed -e 's/-CIT/xCIT/' >broken &&\n+test_expect_success 'apply detecting corrupt patch correctly' '\n+\t git diff | sed -e 's/-CIT/xCIT/' >broken &&\n \t if git apply --stat --summary broken 2>detected\n \t then\n \t\techo unhappy - should have detected an error\n@@ -74,10 +75,11 @@ test_expect_success 'apply detecting corrupt patch correctly' \\\n \t detected=`cat detected` &&\n \t detected=`expr \"$detected\" : \"fatal.*at line \\\\([0-9]*\\\\)\\$\"` &&\n \t detected=`sed -ne \"${detected}p\" broken` &&\n-\t test \"$detected\" = xCIT'\n+\t test \"$detected\" = xCIT\n+'\n \n-test_expect_success 'apply detecting corrupt patch correctly' \\\n-\t'git diff --binary | sed -e 's/-CIT/xCIT/' >broken &&\n+test_expect_success 'apply detecting corrupt patch correctly' '\n+\t git diff --binary | sed -e 's/-CIT/xCIT/' >broken &&\n \t if git apply --stat --summary broken 2>detected\n \t then\n \t\techo unhappy - should have detected an error\n@@ -88,23 +90,26 @@ test_expect_success 'apply detecting corrupt patch correctly' \\\n \t detected=`cat detected` &&\n \t detected=`expr \"$detected\" : \"fatal.*at line \\\\([0-9]*\\\\)\\$\"` &&\n \t detected=`sed -ne \"${detected}p\" broken` &&\n-\t test \"$detected\" = xCIT'\n+\t test \"$detected\" = xCIT\n+'\n \n test_expect_success 'initial commit' 'git commit -a -m initial'\n \n # Try removal (b), modification (d), and creation (e).\n-test_expect_success 'diff-index with --binary' \\\n-\t'echo AIT >a && mv b e && echo CIT >c && cat e >d &&\n+test_expect_success 'diff-index with --binary' '\n+\t echo AIT >a && mv b e && echo CIT >c && cat e >d &&\n \t git update-index --add --remove a b c d e &&\n \t tree0=`git write-tree` &&\n \t git diff --cached --binary >current &&\n-\t git apply --stat --summary current'\n+\t git apply --stat --summary current\n+'\n \n-test_expect_success 'apply binary patch' \\\n-\t'git reset --hard &&\n+test_expect_success 'apply binary patch' '\n+\t git reset --hard &&\n \t git apply --binary --index <current &&\n \t tree1=`git write-tree` &&\n-\t test \"$tree1\" = \"$tree0\"'\n+\t test \"$tree1\" = \"$tree0\"\n+'\n \n test_expect_success 'diff --no-index with binary creation' '\n \techo Q | q_to_nul >binary &&\n-- \n1.7.10.2.552.gaa3bb87\n"}]}