Repository navigation
Commit 8118ff5
Keep file elements in a single parent group
`getGroup` infers "top level" from the shape of the path, which stops
holding once the same directory is also reached as a child. Drop anything
that gets attached to a group from `rootGroups`, and rewrite its path,
project relative until now, to be relative to the new parent.
The TestProject fixture loses the duplicate `Folder` entry in the main group.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 56d5a67 commit 8118ff5
2 files changed
Lines changed: 16 additions & 1 deletion
File tree
- Sources/XcodeGenKit
- Tests/Fixtures/TestProject/Project.xcodeproj
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
| |||
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
385 | 401 | | |
386 | 402 | | |
387 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | 1095 | | |
| |||
0 commit comments