{"thread":{"id":"51523","subject":"[PATCH] stop it from failing silently when git apply patch and show err info","startedAt":"2019-07-25T10:16:34Z","lastAt":"2019-07-25T10:16:34Z","messageCount":1,"participants":["simon gao"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"379265","messageId":"1564049782-68817-1-git-send-email-simon29rock@gmail.com","threadId":"51523","inReplyTo":null,"subject":"[PATCH] stop it from failing silently when git apply patch and show err info","fromName":"simon gao","fromEmail":"simon29rock@gmail.com","sentAt":"2019-07-25T10:16:22Z","receivedAt":"2019-07-25T10:16:34Z","isPatch":true,"sender":{"key":"simon29rock@gmail.com","avatar":null},"body":"Signed-off-by: simon gao <simon29rock@gmail.com>\n---\n apply.c | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/apply.c b/apply.c\nindex 4992eca..f66a6ff 100644\n--- a/apply.c\n+++ b/apply.c\n@@ -2094,6 +2094,7 @@ static int use_patch(struct apply_state *state, struct patch *p)\n \tif (state->prefix && *state->prefix) {\n \t\tconst char *rest;\n \t\tif (!skip_prefix(pathname, state->prefix, &rest) || !*rest)\n+            error(_(\"%s doesn't contain the prefix(%s)\"), pathname, state->prefix);\n \t\t\treturn 0;\n \t}\n \n-- \n1.8.3.1\n\n"}]}