You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WinUI Port Sync: leave mirrored files out of the code diff #26483
Let a WinUI Port Sync area mirror a file that sits inside one of its upstream source folders, without that file also counting as code to port.
Today the tree diff that drives detection and the port agent's git diff commands only excludes the Strings folder. A mirrored file under controls/dev/<Name> (a MUX control's verbatim theme XAML, such as controls/dev/SplitButton/SplitButton.xaml) is therefore handled twice: the workflow copies it from upstream, and the agent is also handed its diff as code to port.
Why is this needed? 🤔
Mirroring exists for exactly these verbatim files, and for MUX controls they live inside the area's source folder. Without the exclusion:
an upstream change to only the mirrored file selects the area as a code change and runs the agent for nothing;
the agent gets a diff for a file it is told not to edit, and the copy then overwrites whatever it did.
For example, an area mirroring SplitButton.xaml at a 1.8.4 baseline sends 3 changed files to the agent instead of the 2 that need porting.
For which platforms 📱💻🖥️
Build tasks
Anything else we need to know? 💬
Follow-up to #26480. The fix is to exclude mirrored paths from the area's tree diffs, the same way the Strings folder is, and to drop a listed source file that is itself mirrored.
Activity
fix(winui-sync): Leave mirrored files out of the code diff