summaryrefslogtreecommitdiff
path: root/tests/patch/patch_common.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-11-16 15:21:56 -0800
committerGitHub <noreply@github.com>2019-11-16 15:21:56 -0800
commit47dd665a62c3ac826277e6eda1287cf9291e8620 (patch)
treee8dfd1603fa2b46020ca347c761ca01fc71414f7 /tests/patch/patch_common.h
parentcb6bc6f25b3cc9f8b2ca029fea9bdecca1931107 (diff)
parentde7659ccc8cacc4d375e47021a1d634a931c78e7 (diff)
downloadlibgit2-47dd665a62c3ac826277e6eda1287cf9291e8620.tar.gz
Merge pull request #5303 from pks-t/pks/patch-path-in-body-only
patch_parse: use paths from "---"/"+++" lines for binary patches
Diffstat (limited to 'tests/patch/patch_common.h')
-rw-r--r--tests/patch/patch_common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/patch/patch_common.h b/tests/patch/patch_common.h
index 4f2141dbe..92ab7692e 100644
--- a/tests/patch/patch_common.h
+++ b/tests/patch/patch_common.h
@@ -924,6 +924,18 @@
"+++ \"\"\n" \
"Binary files "
+#define PATCH_BINARY_FILE_PATH_WITH_SPACES \
+ "diff --git a b c d e f\n" \
+ "--- a b c\n" \
+ "+++ d e f\n" \
+ "Binary files a b c and d e f differ"
+
+#define PATCH_BINARY_FILE_PATH_WITHOUT_BODY_PATHS \
+ "diff --git a b c d e f\n" \
+ "--- \n" \
+ "+++ \n" \
+ "Binary files a b c and d e f differ"
+
#define PATCH_MULTIPLE_OLD_PATHS \
"diff --git \n" \
"--- \n" \