Skip to content

Commit 26b49b3

Browse files
Update readme with more details
1 parent a6350a0 commit 26b49b3

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
# Swift Package for libgit2
1+
# Clibgit2 – Swift Package for libgit2
2+
3+
This is a Swift package for linking to the [libgit2](https://libgit2.org) library.
4+
macOS is currently the only supported platform given the build configuration in the package manifest.
5+
6+
This package does not provide any Swift API overlay and instead just offers access to the C API.
7+
8+
## Usage
9+
10+
Include this package as a dependency like so:
11+
12+
```swift
13+
let package = Package(
14+
// ...
15+
platforms: [
16+
.macOS(.v11),
17+
],
18+
// ...
19+
dependencies: [
20+
.package(url: "https://github.com/Formkunft/Clibgit2", from: "1.9.0"),
21+
],
22+
// ...
23+
)
24+
```
25+
26+
The version numbers of this package follow the version numbers of libgit2.

0 commit comments

Comments
 (0)