mirror of
https://github.com/splitsh/lite.git
synced 2024-05-17 05:36:37 +02:00
Use "original" libgit2/git2go
Works with libgit2 1.5.0 installed using ´brew install libgit2`
This commit is contained in:
parent
493f39ffeb
commit
f54790e733
4
go.mod
4
go.mod
|
@ -4,12 +4,10 @@ go 1.17
|
|||
|
||||
require (
|
||||
github.com/boltdb/bolt v1.3.1
|
||||
github.com/libgit2/git2go v0.0.0-00010101000000-000000000000
|
||||
github.com/libgit2/git2go/v34 v34.0.0
|
||||
)
|
||||
|
||||
require (
|
||||
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c // indirect
|
||||
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
|
||||
)
|
||||
|
||||
replace github.com/libgit2/git2go => ../../libgit2/git2go
|
||||
|
|
2
go.sum
2
go.sum
|
@ -2,6 +2,8 @@ github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4=
|
|||
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
|
||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
|
||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
|
||||
github.com/libgit2/git2go/v34 v34.0.0 h1:UKoUaKLmiCRbOCD3PtUi2hD6hESSXzME/9OUZrGcgu8=
|
||||
github.com/libgit2/git2go/v34 v34.0.0/go.mod h1:blVco2jDAw6YTXkErMMqzHLcAjKkwF0aWIRHBqiJkZ0=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c h1:9HhBz5L/UjnK9XLtiZhYAdue5BVKep3PMmS2LuPDt8k=
|
||||
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
git "github.com/libgit2/git2go"
|
||||
git "github.com/libgit2/git2go/v34"
|
||||
)
|
||||
|
||||
type cache struct {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
git "github.com/libgit2/git2go"
|
||||
git "github.com/libgit2/git2go/v34"
|
||||
)
|
||||
|
||||
// Prefix represents which paths to split
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
git "github.com/libgit2/git2go"
|
||||
git "github.com/libgit2/git2go/v34"
|
||||
)
|
||||
|
||||
// Result represents the outcome of a split
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
git "github.com/libgit2/git2go"
|
||||
git "github.com/libgit2/git2go/v34"
|
||||
)
|
||||
|
||||
type state struct {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
git "github.com/libgit2/git2go"
|
||||
git "github.com/libgit2/git2go/v34"
|
||||
)
|
||||
|
||||
var messageNormalizer = regexp.MustCompile(`\s*\r?\n`)
|
||||
|
|
Loading…
Reference in a new issue