aboutsummaryrefslogtreecommitdiff
path: root/range-diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-30 13:57:00 -0700
committerJunio C Hamano <gitster@pobox.com>2026-03-30 13:57:00 -0700
commit5032e70fc25ff18a3c16fb89d708884104c2d1a3 (patch)
treea1a2f666f1042c36adbe8b66d86973139f917595 /range-diff.c
parent295eb2cc473675bafb1b523696a442e6969ccd41 (diff)
parent2ef795b027c10f5e253151106a6fb4265552cc04 (diff)
downloadgit-5032e70fc25ff18a3c16fb89d708884104c2d1a3.tar.xz
Merge branch 'jw/apply-corrupt-location'
"git apply" now reports the name of the input file along with the line number when it encounters a corrupt patch, and correctly resets the line counter when processing multiple patch files. * jw/apply-corrupt-location: apply: report input location in binary and garbage patch errors apply: report input location in header parsing errors apply: report the location of corrupt patches
Diffstat (limited to 'range-diff.c')
-rw-r--r--range-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/range-diff.c b/range-diff.c
index 57edff40a8..2712a9a107 100644
--- a/range-diff.c
+++ b/range-diff.c
@@ -140,7 +140,7 @@ static int read_patches(const char *range, struct string_list *list,
if (eol)
*eol = '\n';
orig_len = len;
- len = parse_git_diff_header(&root, &linenr, 0, line,
+ len = parse_git_diff_header(&root, NULL, &linenr, 0, line,
len, size, &patch);
if (len < 0) {
error(_("could not parse git header '%.*s'"),