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
-`SwiftGit` (base product) no longer embeds a bundle; `GitEnvironment.Style.embed` will only succeed if one of the resource products is linked.
101
-
-`GitEnvironment.Style.auto` now maps to system git only; use `.embed` explicitly when you add a resource product.
100
+
-`SwiftGit` (base product) no longer embeds a bundle; `.embed(.arm64/.x86_64/.universal)` works only when the corresponding resource product is linked.
101
+
-`GitEnvironment.Style.auto` now maps to system git only; use `.embed(...)` explicitly when you add a resource product.
102
+
103
+
Example usage (arm64):
104
+
105
+
```swift
106
+
importSwiftGit
107
+
importSwiftGitResourcesArm64
108
+
109
+
let env =tryGitEnvironment(type: .embed(.arm64))
110
+
let git =Git(environment: env)
111
+
```
102
112
- Agents and tests should not modify files under the bundles. Use `GitEnvironment.Style.custom(URL)` to point to an alternate git distribution.
103
113
- To generate updated bundles, run `tools/update-git-bundle.sh` with the desired `--archs` and copy the result into the corresponding `Sources/SwiftGitResources*/Resource/` directory.
104
114
- If a bundle looks unusually large, run `tools/fix-git-bundle-links.sh` to relink duplicate `git-*` binaries and shrink the footprint.
@@ -109,7 +119,7 @@ Tests and integration tests
109
119
- Tests live under `Tests/SwiftGitTests/`.
110
120
- Unit tests: parsing and helpers (safe parsing of `git` output, command splitting).
111
121
- Integration tests: initialize temporary repos and run real git workflows (init, add, commit, tag, branch, stash, rebase, plumbing commands like `write-tree`).
112
-
- Integration tests try to use the embedded git first and fall back to system git. If neither is available they skip.
122
+
- Integration tests use system git; if gitis unavailable they skip.
0 commit comments