summaryrefslogtreecommitdiff
path: root/tests/patch/patch_common.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-05-21 09:54:19 +0200
committerGitHub <noreply@github.com>2019-05-21 09:54:19 +0200
commitb3e1a56ebb2b9291e82dc027ba9cbcfc3ead54d3 (patch)
treefb4068bcac11a7b90e9ddee84f682508f4c9e3fe /tests/patch/patch_common.h
parent572e4d8c1f1d42feac1c770f0cddf6fda6c4eca0 (diff)
parenteddd8fd1eb9c961928dcbb2fe3659c78af1cb25b (diff)
downloadlibgit2-0.28.2.tar.gz
Merge pull request #5064 from pks-t/pks/v0.28.2v0.28.2
Release v0.28.2
Diffstat (limited to 'tests/patch/patch_common.h')
-rw-r--r--tests/patch/patch_common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/patch/patch_common.h b/tests/patch/patch_common.h
index 3f2668ddc..291ece9eb 100644
--- a/tests/patch/patch_common.h
+++ b/tests/patch/patch_common.h
@@ -841,3 +841,21 @@
"diff --git a/binary.bin b/binary.bin\n" \
"index 27184d9..7c94f9e 100644\n" \
"Binary files a/binary.bin and b/binary.bin differ\n"
+
+#define PATCH_ORIGINAL_NEW_FILE_WITH_SPACE \
+ "diff --git a/sp ace.txt b/sp ace.txt\n" \
+ "new file mode 100644\n" \
+ "index 000000000..789819226\n" \
+ "--- /dev/null\n" \
+ "+++ 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"