build: merge docs/dev/debt files with the union driver #18328
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18328"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-11T08:57:50Z.
What
Adds a
.gitattributesline,docs/dev/debt/*.md merge=union, so git merges of the technical debt files keep both sides instead of stopping on a conflict.Debt files are mostly lists that PRs append to. When several open PRs add a bullet to the same library's file, each merge into main makes the rest conflict on adjacent lines, although every addition is wanted. For example, 26 of 30 open libSceLibreSsl PRs conflicted only on
docs/dev/debt/libSceLibreSsl.md.This is a repository-wide setting, so it is the owner's call. Close it if you would rather keep resolving these by hand.
Limits:
git merge,git rebase,git cherry-pickand merge-main commits. GitHub's web merge and its mergeable flag may not use custom merge drivers, so a PR can still show as conflicting there until someone merges main into it locally.Tested
git check-attr mergereportsunionfor files underdocs/dev/debt/andunspecifiedelsewhere. No code change.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T16:26:12Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
The head is
26da7e127e80380b56db31fd2acd9d10048a51e9. The change adds one line to a new.gitattributesfile, so the review covers that single file.What I ran
26da7e127e80380b56db31fd2acd9d10048a51e9, read throughrepo_read.py.Results
.gitattributes, 1 line)docs/dev/debt/*.mdpattern matches themgit check-attr mergefor the patternRaw reader output (excerpt)
Findings
Blocking
None.
Non-blocking
.gitattributes:1— the union driver keeps both sides of any line that both branches changed, with no conflict marker. The description already says this for count lines. A debt file's structured lines (for example aLabels:orCloses when:line, which the debt tooling reads) would be kept twice in the same way. Nothing in this diff shows that happening; see Not verified.Not verified
git check-attr mergeresult stated in the description. I did not run it.tools/debt_report.pyparses debt files after a union merge. I did not read it, so I cannot say whether a duplicated structured line would break it.Files read:
.gitattributes(full diff). Files reviewed:.gitattributes. Excluded by rule: none.To get this to a good state
Nothing is required.
Optional: state in the description which local
gitcommand was used for thecheck-attrcheck, so it can be rerun.