Skip to content

WinUI Port Sync: leave mirrored files out of the code diff #26483

Closed

Description

@MartinZikmund

What would you like to be added? 💡

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

  1. added
    kind/enhancement
    triage/untriaged
    on Nov 14, 2026
  2. added a commit that references this issue on Nov 14, 2026
    fecffd4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/enhancementtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions