]> Kevux Git Server - rit/commit
apply: report input location in binary and garbage patch errors
authorJialong Wang <jerrywang183@yahoo.com>
Tue, 17 Mar 2026 16:23:21 +0000 (12:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Mar 2026 18:08:32 +0000 (11:08 -0700)
commit2ef795b027c10f5e253151106a6fb4265552cc04
treed2344d20a455cc7bab22b3911627653650b3c800
parent838c0ba5004b37009d8d2649ed1be7b77770c2f0
apply: report input location in binary and garbage patch errors

Several binary parsing paths in apply.c still report only line
numbers. When more than one patch input is fed to a single
invocation, that does not tell the user which input the line belongs
to.

Report the patch input location for corrupt and unrecognized binary
patches, as well as the "patch with only garbage" case, and update
the related tests.

Signed-off-by: Jialong Wang <jerrywang183@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
t/t4100-apply-stat.sh
t/t4103-apply-binary.sh