{"thread":{"id":"22690","subject":"[RFC/PATCH 2/3] t4124: Add additional tests of --whitespace=fix","startedAt":"2010-02-17T07:03:26Z","lastAt":"2010-02-17T07:03:26Z","messageCount":1,"participants":["Björn Gustavsson"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"134840","messageId":"4B7B94BE.60502@gmail.com","threadId":"22690","inReplyTo":null,"subject":"[RFC/PATCH 2/3] t4124: Add additional tests of --whitespace=fix","fromName":"Björn Gustavsson","fromEmail":"bgustavsson@gmail.com","sentAt":"2010-02-17T07:03:26Z","receivedAt":"2010-02-17T07:03:26Z","isPatch":true,"sender":{"key":"bgustavsson@gmail.com","avatar":"https://avatars.githubusercontent.com/u/74840?v=4"},"body":"\"git apply --whitespace=fix\" must not succeed unless at least\none context line falls within the boundaries of the file.\n\nSigned-off-by: Björn Gustavsson <bgustavsson@gmail.com>\n---\n t/t4124-apply-ws-rule.sh |   12 ++++++++++++\n 1 files changed, 12 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t4124-apply-ws-rule.sh b/t/t4124-apply-ws-rule.sh\nindex ca26397..3b539d8 100755\n--- a/t/t4124-apply-ws-rule.sh\n+++ b/t/t4124-apply-ws-rule.sh\n@@ -261,4 +261,16 @@ test_expect_success 'blank but not empty at EOF' '\n \tgrep \"new blank line at EOF\" error\n '\n \n+test_expect_success 'tons of blanks at EOF should not apply' '\n+\tfor i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; do\n+\t\techo; echo; echo; echo;\n+\tdone >one &&\n+\tgit add one &&\n+\techo a >>one &&\n+\tgit diff -- one >patch &&\n+\n+\t>one &&\n+\ttest_must_fail git apply --whitespace=fix patch\n+'\n+\n test_done\n-- \n1.7.0\n"}]}