git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 18:10 UTC

[PATCH v4 0/3] apply: report input file for more parse errors

From
JWJialong Wang <jerrywang183@yahoo.com>
Date
Mar 17, 2026, 16:23 UTC
Message-ID
<20260317162321.71812-1-jerrywang183@yahoo.com>
In-Reply-To
<20260316162123.84532-1-jerrywang183@yahoo.com>

Rerolling these changes as a single series, since the follow-up patches are all part of the same input-location reporting topic in apply.c.

The first patch updates the existing "corrupt patch at line N" diagnostic to include the input file name.

The second patch extends the same treatment to header parsing related errors, and the third patch does the same for binary patch and garbage patch errors.

Jialong Wang (3):
  apply: report the location of corrupt patches
  apply: report input location in header parsing errors
  apply: report input location in binary and garbage patch errors
 apply.c                 | 100 +++++++++++++++++++++++++++++-----------
 apply.h                 |   1 +
 range-diff.c            |   2 +-
 t/t4012-diff-binary.sh  |   4 +-
 t/t4100-apply-stat.sh   |  88 ++++++++++++++++++++++++++++++++++-
 t/t4103-apply-binary.sh |  20 +++++++-
 t/t4254-am-corrupt.sh   |   3 +-
 7 files changed, 185 insertions(+), 33 deletions(-)
-- 
2.51.0
Previous: Junio C HamanoNext: Jialong Wang
Message 11 of 14 in “apply: report the location of corrupt patches”
  1. apply: report the location of corrupt patchesJialong Wang, Mar 15, 2026
  2. Karthik NayakMar 16, 2026
  3. Jialong WangMar 16, 2026
  4. apply: report the location of corrupt patchesJialong Wang, Mar 16, 2026
  5. apply: report the location of corrupt patchesJialong Wang, Mar 16, 2026
  6. Junio C HamanoMar 16, 2026
  7. Jialong WangMar 16, 2026
  8. apply: report input location in header parsing errorsJialong Wang, Mar 16, 2026
  9. apply: report input location in header parsing errorsJialong Wang, Mar 16, 2026
  10. Junio C HamanoMar 16, 2026
  11. 0/3 apply: report input file for more parse errorsJialong Wang, Mar 17, 2026
  12. 2/3 apply: report input location in header parsing errorsJialong Wang, Mar 17, 2026
  13. 3/3 apply: report input location in binary and garbage patch errorsJialong Wang, Mar 17, 2026
  14. 1/3 apply: report the location of corrupt patchesJialong Wang, Mar 17, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.