aboutsummaryrefslogtreecommitdiff
path: root/range-diff.c
diff options
context:
space:
mode:
authorJialong Wang <jerrywang183@yahoo.com>2026-03-17 12:23:19 -0400
committerJunio C Hamano <gitster@pobox.com>2026-03-17 11:08:24 -0700
commitc5e15c9a58c0b32ec8be3ae96434834124de175e (patch)
tree08679ef3fea335dfbfd2672563b222a6acde4e1c /range-diff.c
parentdc6ecd5354dca88d51b6d6562777fc8fc10d77e1 (diff)
downloadgit-c5e15c9a58c0b32ec8be3ae96434834124de175e.tar.xz
apply: report the location of corrupt patches
When parsing a corrupt patch, git apply reports only the line number. That does not tell the user which input the line number refers to. Include the patch input path in the error message so the reported location is easier to use. Reset the line number for each patch input so the reported location stays correct when multiple input files are provided. Add tests for file input, standard input, multiple patch inputs, and existing binary-diff corrupt patch cases. Signed-off-by: Jialong Wang <jerrywang183@yahoo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'range-diff.c')
0 files changed, 0 insertions, 0 deletions