summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2012-09-20 04:33:50 +0200
committerAndreas Gruenbacher <agruen@linbit.com>2012-09-20 04:34:40 +0200
commit1d9d403394750474c339dd1473119a0794361240 (patch)
tree6ae3693b1d78629b688c31ce95d9ce82f10e345d
parent293415dbcf8c621c8aecb4347abd32fd60935a8b (diff)
downloadpatch-1d9d403394750474c339dd1473119a0794361240.tar.gz
Add a missing explanation in the tests/crlf-handling test case
* tests/crlf-handling: Add explanation.
-rw-r--r--tests/crlf-handling4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/crlf-handling b/tests/crlf-handling
index 535f0cd..b86bf38 100644
--- a/tests/crlf-handling
+++ b/tests/crlf-handling
@@ -179,6 +179,10 @@ EOF
# ==============================================================
+# Line endings of @@ lines are not used for guessing if a patch needs CR
+# stripping: if the -p / --show-c-function option of GNU diff is used, these
+# lines can have different line endings than the rest of the patch.
+
echo 1 > a
echo 2 > b
diff -u a b | sed -e 's,@@$,@@ context\r,' > ab.diff