Skip to content

apply: report input file for more parse errors

Jialong Wang git 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v31 patch 0 repliesSuperseded
  3. v21 patch 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3apply: report the location of corrupt patchesapply.c t/t4012-diff-binary.sh t/t4100-apply-stat.sh+42 -40 replies
2/3apply: report input location in header parsing errorsapply.c apply.h range-diff.c +2 more+106 -240 replies
3/3apply: report input location in binary and garbage patch errorsapply.c t/t4100-apply-stat.sh t/t4103-apply-binary.sh+37 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

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

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(-)
Signature · 1 line
2.51.0