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
Copy file name to clipboardExpand all lines: AGENTS.md
+31-24Lines changed: 31 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@
4
4
5
5
CLI tool that sorts sections of Xcode `project.pbxproj` files to reduce merge conflicts. Forked from WebKit's sort-Xcode-project-file with extended functionality.
Put following line into `.gitattributes` file then commit it.
93
+
**3.** Make it executable:
94
94
95
-
```
96
-
*.pbxproj merge=union
95
+
```bash
96
+
chmod +x .git/hooks/pre-commit
97
97
```
98
98
99
-
## Running Tests
99
+
**4.***(Optional)* Add to `.gitattributes` to reduce merge conflicts further:
100
100
101
-
```bash
102
-
python3 -m unittest discover tests # Run all tests (54 tests)
103
-
python3 tests/cross_validate.py # Cross-validate Python vs Perl output
101
+
```
102
+
*.pbxproj merge=union
104
103
```
105
104
106
-
## Legacy Perl Version
105
+
> **Note:**`merge=union` tells Git to keep both sides of a conflict automatically. This works well for sorted `.pbxproj` files but can produce invalid results on non-sorted ones. Use this tool consistently to avoid issues.
107
106
108
-
The original Perl version (`sort-Xcode-project-file.pl`) is still available. The Python version produces byte-for-byte identical output.
0 commit comments