Repository navigation
zdxsv seams: few-line inline changes in upstream files, marked and listed in upstream.md - #694
Merged
Merged
Conversation
…and listed in docs/zdxsv/upstream.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
AGENTS.md, Seams With Upstream Code: same policy as the gdxsv flycast fork. A zdxsv feature of its own lives inpcsx2/Zdxsv/behind a hook; a change of a few lines that reads naturally in place stays inline. Every changed spot in an upstream file is marked (Zdxsv::/Zdxsv/include, else// zdxsv: <why>) and listed indocs/zdxsv/upstream.md.docs/zdxsv/upstream.md(new): fork point, added files, changed third-party code, changed upstream files by area, and the generated list of all 364 changed spots.tools/zdxsv/upstream_spots.py(new): finds the spots against the fork point, checks markers, regenerates the list (--write). Fork point: the upstream merge base, orfd9d310ccwhile that is older (upstream rewrote the commits the fork started from).Rationale behind Changes
The old rule ("an upstream file gets only an include and a one-line call") did not hold in many files (
DEV9.cpp,vtlb.cpp,VUops.cpp,FPU.cpp,spu2freeze.cpp, ...). A rule that is broken everywhere gets read loosely. This replaces it with one the code can follow and a list that shows every spot where upstream merges can conflict.Suggested Testing Steps
python tools/zdxsv/upstream_spots.py→364 spots, 161 unmarked, base fd9d310ccb, list up to date(Windows, windows-mini).// zdxsv: test marker.added inside the unmarkedcommon/Console.hspot → 160 unmarked, row described, list stale; reverted.git merge-tree).Did you use AI to help find, test, or implement this issue or feature?
Yes: written and checked by Claude Code (inada-s-ai bot) for https://github.com/inada-s/ai-automation/issues/226.
🤖 Generated with Claude Code