fix: remove stored identity defaults from worktree result
Summary
Follow-up to merged PR #10781. Its explicit initializer assigns the two
filesystem identity let properties, but the stored declarations still had
= nil defaults. Xcode 26.5's nightly compiler therefore reports that each
immutable property may only be initialized once in Sources/ExtensionWorktreePrototype.swift.
This fix removes those stored-value defaults while keeping = nil on the
explicit initializer parameters, so callers that omit identity values remain
source-compatible. The component-wise optional identity comparison from #10781
and its existing behavior test asserting that captured identity values survive
initialization are unchanged.
This is a focused post-merge repair, not a duplicate of open PR #10777. The
remote PTY overlap is limited to the stale bridge lease and reattach work owned
by #10367/#10368, #10173/#10327/#10350; no remote PTY code is changed here.
Verification
git diff --check./scripts/check-pbxproj.shpython3 scripts/check-package-resolved-policy.pypython3 scripts/check-workspace-package-groups.py --check- Swift 6.3.3 type-check of legacy (omitted identity) and captured-identity
initializer call forms - GitHub Actions nightly run 32927112366 reproduced the Xcode 26.5 diagnostics;
the PR's CI run will provide the real Xcode compiler proof for this repair.
The repository has no .github/swift-file-length-budget.tsv,
swift-warning-budget.tsv, or scripts/swift_file_length_budget.py on this
base, so no budget files were created or modified.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by CodeRabbit
- Refactor
- Updated internal initialization behavior for optional worktree identifiers without changing the user-visible functionality.