Skip to content

gitrepo: Show the conflicts of patches that fail to apply. - #8

Closed
rosemarie-o wants to merge 1 commit into
fuzzfactor:mainfrom
rosemarie-o:reports-apply
Closed

rosemarie-o wants to merge 1 commit into
fuzzfactor:mainfrom
rosemarie-o:reports-apply

Conversation

@rosemarie-o

@rosemarie-o rosemarie-o commented Nov 25, 2026 •

Copy link
Copy Markdown

git am -q prints only "Patch failed at ..." and hints, so reports of patches that fail to apply did not say where the conflict was. Run git am without -q, which names every file with conflicts, turn off its hints, and follow its output with the diff of the conflicts, capped at 100 lines and 10000 characters. The diff ignores the color and external diff settings of the user running the robot, which would garble the report. The cap of 4000 characters now applies to the git am output alone, so that the diff cannot push the conflicts out of the report.

Fixes #2

Here's an example of the email not showing conflicts: https://mail.openvswitch.org/pipermail/ovs-dev/2026-November/438284.html

git am -q prints only "Patch failed at ..." and hints, so reports of
patches that fail to apply did not say where the conflict was.  Run git
am without -q, which names every file with conflicts, turn off its hints,
and follow its output with the diff of the conflicts, capped at 100
lines and 10000 characters.  The diff ignores the color and external
diff settings of the user running the robot, which would garble the
report.  The cap of 4000 characters now applies to the git am output
alone, so that the diff cannot push the conflicts out of the report.

Fixes fuzzfactor#2

Signed-off-by: Rosemarie O'Riorden <rosemarie@redhat.com>
@rosemarie-o
rosemarie-o marked this pull request as draft November 30, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In Apply reports, show conflicts

1 participant