Skip to content

Commit 13ca960

Browse files
committed
Uprev vendor/libgit2 to v1.0
This uprevs libgit2 to the latest and greatest.
1 parent 0843b82 commit 13ca960

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ Due to the fact that Go 1.11 module versions have semantic meaning and don't nec
1010

1111
| libgit2 | git2go |
1212
|---------|---------------|
13-
| master | (will be v30) |
13+
| master | (will be v31) |
14+
| 1.0 | v30 |
1415
| 0.99 | v29 |
1516
| 0.28 | v28 |
1617
| 0.27 | v27 |
1718

18-
You can import them in your project with the version's major number as a suffix. For example, if you have libgit2 v0.99 installed, you'd import git2go v29 with
19+
You can import them in your project with the version's major number as a suffix. For example, if you have libgit2 v1.0 installed, you'd import git2go v30 with
1920

2021
```sh
21-
go get github.com/libgit2/git2go/v29
22+
go get github.com/libgit2/git2go/v30
2223
```
2324
```go
24-
import "github.com/libgit2/git2go/v29"
25+
import "github.com/libgit2/git2go/v30"
2526
```
2627

2728
which will ensure there are no sudden changes to the API.
@@ -42,10 +43,10 @@ This project wraps the functionality provided by libgit2. If you're using a vers
4243

4344
### Versioned branch, dynamic linking
4445

45-
When linking dynamically against a released version of libgit2, install it via your system's package manager. CGo will take care of finding its pkg-config file and set up the linking. Import via Go modules, e.g. to work against libgit2 v0.99
46+
When linking dynamically against a released version of libgit2, install it via your system's package manager. CGo will take care of finding its pkg-config file and set up the linking. Import via Go modules, e.g. to work against libgit2 v1.0
4647

4748
```go
48-
import "github.com/libgit2/git2go/v29"
49+
import "github.com/libgit2/git2go/v30"
4950
```
5051

5152
### Master branch, or static linking

git_dynamic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package git
66
#include <git2.h>
77
#cgo pkg-config: libgit2
88
9-
#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 99
10-
# error "Invalid libgit2 version; this git2go supports libgit2 v0.99"
9+
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR != 0
10+
# error "Invalid libgit2 version; this git2go supports libgit2 v1.0"
1111
#endif
1212
1313
*/

git_static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ package git
88
#cgo !windows pkg-config: --static ${SRCDIR}/static-build/install/lib/pkgconfig/libgit2.pc
99
#include <git2.h>
1010
11-
#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 99
12-
# error "Invalid libgit2 version; this git2go supports libgit2 v0.99"
11+
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR != 0
12+
# error "Invalid libgit2 version; this git2go supports libgit2 v1.0"
1313
#endif
1414
1515
*/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/libgit2/git2go/v29
1+
module github.com/libgit2/git2go/v30
22

33
go 1.13

vendor/libgit2

Submodule libgit2 updated 63 files

0 commit comments

Comments
 (0)