summaryrefslogtreecommitdiff
path: root/tests/patch/patch_common.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-22 23:56:10 -0400
committerDrew DeVault <sir@cmpwn.com>2019-04-05 20:44:10 -0400
commit30c06b601eaf9b87975a3731ad1051d74b1ae73d (patch)
treec577ebc827c3b42f447c25b6367c3c61a7c30929 /tests/patch/patch_common.h
parentaeea1c463941806a0176859c06c0e2e9716efcb0 (diff)
downloadlibgit2-30c06b601eaf9b87975a3731ad1051d74b1ae73d.tar.gz
patch_parse.c: Handle CRLF in parse_header_start
Diffstat (limited to 'tests/patch/patch_common.h')
-rw-r--r--tests/patch/patch_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/patch/patch_common.h b/tests/patch/patch_common.h
index 75aab4453..291ece9eb 100644
--- a/tests/patch/patch_common.h
+++ b/tests/patch/patch_common.h
@@ -850,3 +850,12 @@
"+++ b/sp ace.txt\n" \
"@@ -0,0 +1 @@\n" \
"+a\n"
+
+#define PATCH_CRLF \
+ "diff --git a/test-file b/test-file\r\n" \
+ "new file mode 100644\r\n" \
+ "index 0000000..af431f2 100644\r\n" \
+ "--- /dev/null\r\n" \
+ "+++ b/test-file\r\n" \
+ "@@ -0,0 +1 @@\r\n" \
+ "+a contents\r\n"