aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-11 14:12:04 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-11 14:12:04 +0200
commitc1e277a7ca75ff84741d75ad45e29a2ff3e633e3 (patch)
tree44949d811c21d38aa011a307a7d7716098b62370
parent303cb32f7f36e39bbea80b4031be99cc33fea592 (diff)
downloadgo-git-c1e277a7ca75ff84741d75ad45e29a2ff3e633e3.tar.gz
v3 -> v4
-rw-r--r--.travis.yml2
-rw-r--r--README.md10
-rw-r--r--blame.go4
-rw-r--r--blame_test.go4
-rw-r--r--clients/common.go6
-rw-r--r--clients/common/common.go4
-rw-r--r--clients/common/common_test.go4
-rw-r--r--clients/common_test.go2
-rw-r--r--clients/http/common.go4
-rw-r--r--clients/http/git_upload_pack.go6
-rw-r--r--clients/http/git_upload_pack_test.go4
-rw-r--r--clients/ssh/auth_method.go2
-rw-r--r--clients/ssh/git_upload_pack.go4
-rw-r--r--clients/ssh/git_upload_pack_test.go4
-rw-r--r--commit.go2
-rw-r--r--commit_test.go2
-rw-r--r--common_test.go6
-rw-r--r--cshared/auth_method_cshared.go4
-rw-r--r--cshared/blame_cshared.go2
-rw-r--r--cshared/commit_cshared.go4
-rw-r--r--cshared/file_cshared.go4
-rw-r--r--cshared/objects_cshared.go4
-rw-r--r--cshared/remote_cshared.go4
-rw-r--r--cshared/repository_cshared.go6
-rw-r--r--cshared/tag_cshared.go4
-rw-r--r--cshared/tree_cshared.go4
-rw-r--r--diff/diff_ext_test.go2
-rw-r--r--examples/basic/main.go2
-rw-r--r--examples/fs_implementation/main.go4
-rw-r--r--examples/latest/latest.go2
-rw-r--r--file_test.go2
-rw-r--r--formats/idxfile/decoder.go2
-rw-r--r--formats/idxfile/idxfile.go2
-rw-r--r--formats/objfile/common.go2
-rw-r--r--formats/objfile/common_test.go2
-rw-r--r--formats/objfile/reader.go2
-rw-r--r--formats/objfile/reader_test.go2
-rw-r--r--formats/objfile/writer.go2
-rw-r--r--formats/objfile/writer_test.go2
-rw-r--r--formats/packfile/decoder.go2
-rw-r--r--formats/packfile/decoder_test.go4
-rw-r--r--formats/packfile/parser.go4
-rw-r--r--formats/packfile/parser_test.go4
-rw-r--r--formats/packfile/read_recaller.go2
-rw-r--r--formats/packfile/read_recaller_impl_test.go4
-rw-r--r--formats/packfile/seekable.go2
-rw-r--r--formats/packfile/stream.go2
-rw-r--r--objects.go2
-rw-r--r--objects_test.go4
-rw-r--r--references.go4
-rw-r--r--references_test.go4
-rw-r--r--remote.go6
-rw-r--r--remote_test.go8
-rw-r--r--repository.go12
-rw-r--r--repository_test.go8
-rw-r--r--storage/memory/object.go2
-rw-r--r--storage/memory/object_test.go2
-rw-r--r--storage/memory/storage.go2
-rw-r--r--storage/memory/storage_test.go2
-rw-r--r--storage/seekable/internal/gitdir/gitdir.go6
-rw-r--r--storage/seekable/internal/gitdir/gitdir_test.go6
-rw-r--r--storage/seekable/internal/gitdir/refs.go2
-rw-r--r--storage/seekable/internal/index/index.go6
-rw-r--r--storage/seekable/internal/index/index_test.go4
-rw-r--r--storage/seekable/storage.go10
-rw-r--r--storage/seekable/storage_test.go12
-rw-r--r--tag.go2
-rw-r--r--tag_test.go2
-rw-r--r--tree.go2
-rw-r--r--tree_diff.go2
-rw-r--r--tree_diff_test.go4
-rw-r--r--tree_test.go2
-rw-r--r--tree_walker_test.go2
-rw-r--r--utils/difftree/difftree.go4
-rw-r--r--utils/difftree/difftree_test.go6
75 files changed, 143 insertions, 143 deletions
diff --git a/.travis.yml b/.travis.yml
index 45d4c4b..b0f8e87 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,7 +11,7 @@ matrix:
install:
- rm -rf $GOPATH/src/gopkg.in/src-d
- mkdir -p $GOPATH/src/gopkg.in/src-d
- - ln -s $PWD $GOPATH/src/gopkg.in/src-d/go-git.v3
+ - ln -s $PWD $GOPATH/src/gopkg.in/src-d/go-git.v4
- go get -v -t ./...
script:
diff --git a/README.md b/README.md
index 7d0aa89..fa8e7a0 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# go-git [![GoDoc](https://godoc.org/gopkg.in/src-d/go-git.v3?status.svg)](https://godoc.org/gopkg.in/src-d/go-git.v3) [![Build Status](https://travis-ci.org/src-d/go-git.svg)](https://travis-ci.org/src-d/go-git) [![codecov.io](https://codecov.io/github/src-d/go-git/coverage.svg)](https://codecov.io/github/src-d/go-git) [![codebeat badge](https://codebeat.co/badges/b6cb2f73-9e54-483d-89f9-4b95a911f40c)](https://codebeat.co/projects/github-com-src-d-go-git)
+# go-git [![GoDoc](https://godoc.org/gopkg.in/src-d/go-git.v4?status.svg)](https://godoc.org/gopkg.in/src-d/go-git.v4) [![Build Status](https://travis-ci.org/src-d/go-git.svg)](https://travis-ci.org/src-d/go-git) [![codecov.io](https://codecov.io/github/src-d/go-git/coverage.svg)](https://codecov.io/github/src-d/go-git) [![codebeat badge](https://codebeat.co/badges/b6cb2f73-9e54-483d-89f9-4b95a911f40c)](https://codebeat.co/projects/github-com-src-d-go-git)
A low level and highly extensible git client library for **reading** repositories from git servers. It is written in Go from scratch, without any C dependencies.
@@ -30,7 +30,7 @@ Installation
The recommended way to install *go-git* is:
```
-go get -u gopkg.in/src-d/go-git.v3/...
+go get -u gopkg.in/src-d/go-git.v4/...
```
@@ -133,8 +133,8 @@ import (
"fmt"
"io"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
)
func main() {
@@ -182,7 +182,7 @@ with `go build -o libgogit.so -buildmode=c-shared github.com/src-d/go-git/cshare
Acknowledgements
----------------
-The earlier versions of the [packfile reader](https://godoc.org/gopkg.in/src-d/go-git.v3/formats/packfile) are based on [git-chain](https://github.com/gitchain/gitchain/blob/master/git/pack.go), project done by [@yrashk](https://github.com/yrashk)
+The earlier versions of the [packfile reader](https://godoc.org/gopkg.in/src-d/go-git.v4/formats/packfile) are based on [git-chain](https://github.com/gitchain/gitchain/blob/master/git/pack.go), project done by [@yrashk](https://github.com/yrashk)
License
diff --git a/blame.go b/blame.go
index 8fdef16..e698c78 100644
--- a/blame.go
+++ b/blame.go
@@ -8,8 +8,8 @@ import (
"strings"
"unicode/utf8"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/diff"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/diff"
)
type Blame struct {
diff --git a/blame_test.go b/blame_test.go
index 40ae0b0..6df1e2b 100644
--- a/blame_test.go
+++ b/blame_test.go
@@ -5,8 +5,8 @@ import (
"io/ioutil"
"os"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
. "gopkg.in/check.v1"
)
diff --git a/clients/common.go b/clients/common.go
index b6da656..8d45a34 100644
--- a/clients/common.go
+++ b/clients/common.go
@@ -15,9 +15,9 @@ import (
"fmt"
"net/url"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/clients/http"
- "gopkg.in/src-d/go-git.v3/clients/ssh"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/clients/http"
+ "gopkg.in/src-d/go-git.v4/clients/ssh"
)
// DefaultProtocols are the protocols supported by default.
diff --git a/clients/common/common.go b/clients/common/common.go
index 7280450..1c6e552 100644
--- a/clients/common/common.go
+++ b/clients/common/common.go
@@ -8,8 +8,8 @@ import (
"io/ioutil"
"strings"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/pktline"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/pktline"
"gopkg.in/sourcegraph/go-vcsurl.v1"
)
diff --git a/clients/common/common_test.go b/clients/common/common_test.go
index 091e5fa..791001e 100644
--- a/clients/common/common_test.go
+++ b/clients/common/common_test.go
@@ -6,8 +6,8 @@ import (
"testing"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/pktline"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/pktline"
)
func Test(t *testing.T) { TestingT(t) }
diff --git a/clients/common_test.go b/clients/common_test.go
index c571f04..53ae90c 100644
--- a/clients/common_test.go
+++ b/clients/common_test.go
@@ -6,7 +6,7 @@ import (
"os"
"testing"
- "gopkg.in/src-d/go-git.v3/clients/common"
+ "gopkg.in/src-d/go-git.v4/clients/common"
"github.com/alcortesm/tgz"
. "gopkg.in/check.v1"
diff --git a/clients/http/common.go b/clients/http/common.go
index f163cfc..d375e62 100644
--- a/clients/http/common.go
+++ b/clients/http/common.go
@@ -6,9 +6,9 @@ import (
"fmt"
"net/http"
- "gopkg.in/src-d/go-git.v3/clients/common"
+ "gopkg.in/src-d/go-git.v4/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
var InvalidAuthMethodErr = errors.New("invalid http auth method: a http.HTTPAuthMethod should be provided.")
diff --git a/clients/http/git_upload_pack.go b/clients/http/git_upload_pack.go
index 7a3d296..1113eb1 100644
--- a/clients/http/git_upload_pack.go
+++ b/clients/http/git_upload_pack.go
@@ -6,9 +6,9 @@ import (
"net/http"
"strings"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/pktline"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/pktline"
)
type GitUploadPackService struct {
diff --git a/clients/http/git_upload_pack_test.go b/clients/http/git_upload_pack_test.go
index 0b76fb9..db4a273 100644
--- a/clients/http/git_upload_pack_test.go
+++ b/clients/http/git_upload_pack_test.go
@@ -4,8 +4,8 @@ import (
"io/ioutil"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
)
type SuiteRemote struct{}
diff --git a/clients/ssh/auth_method.go b/clients/ssh/auth_method.go
index c680336..4fe68ca 100644
--- a/clients/ssh/auth_method.go
+++ b/clients/ssh/auth_method.go
@@ -4,7 +4,7 @@ import (
"fmt"
"golang.org/x/crypto/ssh"
- "gopkg.in/src-d/go-git.v3/clients/common"
+ "gopkg.in/src-d/go-git.v4/clients/common"
)
// AuthMethod is the interface all auth methods for the ssh client
diff --git a/clients/ssh/git_upload_pack.go b/clients/ssh/git_upload_pack.go
index 5f105d4..be5f7d0 100644
--- a/clients/ssh/git_upload_pack.go
+++ b/clients/ssh/git_upload_pack.go
@@ -12,8 +12,8 @@ import (
"io/ioutil"
"net/url"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/formats/pktline"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/formats/pktline"
"gopkg.in/sourcegraph/go-vcsurl.v1"
"golang.org/x/crypto/ssh"
diff --git a/clients/ssh/git_upload_pack_test.go b/clients/ssh/git_upload_pack_test.go
index 07aa816..3a0a983 100644
--- a/clients/ssh/git_upload_pack_test.go
+++ b/clients/ssh/git_upload_pack_test.go
@@ -11,8 +11,8 @@ import (
"golang.org/x/crypto/ssh/agent"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
)
type SuiteRemote struct{}
diff --git a/commit.go b/commit.go
index 94b9500..1154ec7 100644
--- a/commit.go
+++ b/commit.go
@@ -7,7 +7,7 @@ import (
"io"
"sort"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Hash hash of an object
diff --git a/commit_test.go b/commit_test.go
index a620e8c..2240ab3 100644
--- a/commit_test.go
+++ b/commit_test.go
@@ -3,7 +3,7 @@ package git
import (
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
. "gopkg.in/check.v1"
)
diff --git a/common_test.go b/common_test.go
index edc41a9..0f2bcdf 100644
--- a/common_test.go
+++ b/common_test.go
@@ -7,9 +7,9 @@ import (
"os"
"testing"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
. "gopkg.in/check.v1"
)
diff --git a/cshared/auth_method_cshared.go b/cshared/auth_method_cshared.go
index 3e1479e..afd9549 100644
--- a/cshared/auth_method_cshared.go
+++ b/cshared/auth_method_cshared.go
@@ -6,8 +6,8 @@ import (
"strings"
"golang.org/x/crypto/ssh"
- "gopkg.in/src-d/go-git.v3/clients/http"
- gssh "gopkg.in/src-d/go-git.v3/clients/ssh"
+ "gopkg.in/src-d/go-git.v4/clients/http"
+ gssh "gopkg.in/src-d/go-git.v4/clients/ssh"
)
//export c_NewBasicAuth
diff --git a/cshared/blame_cshared.go b/cshared/blame_cshared.go
index 2da2e42..939000a 100644
--- a/cshared/blame_cshared.go
+++ b/cshared/blame_cshared.go
@@ -4,7 +4,7 @@ package main
import (
"C"
- "gopkg.in/src-d/go-git.v3"
+ "gopkg.in/src-d/go-git.v4"
)
//export c_Blame_get_Path
diff --git a/cshared/commit_cshared.go b/cshared/commit_cshared.go
index 51b2c1a..e73fb4a 100644
--- a/cshared/commit_cshared.go
+++ b/cshared/commit_cshared.go
@@ -7,8 +7,8 @@ import (
"reflect"
"unsafe"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
)
//export c_Commit_get_Hash
diff --git a/cshared/file_cshared.go b/cshared/file_cshared.go
index 635b853..2a6678a 100644
--- a/cshared/file_cshared.go
+++ b/cshared/file_cshared.go
@@ -5,8 +5,8 @@ import (
"io"
"io/ioutil"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
)
//export c_File_get_Name
diff --git a/cshared/objects_cshared.go b/cshared/objects_cshared.go
index 68e7b4f..17b2e1b 100644
--- a/cshared/objects_cshared.go
+++ b/cshared/objects_cshared.go
@@ -6,8 +6,8 @@ import (
"io/ioutil"
"time"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
)
//export c_Signature_Name
diff --git a/cshared/remote_cshared.go b/cshared/remote_cshared.go
index 9ae72f3..abed3c9 100644
--- a/cshared/remote_cshared.go
+++ b/cshared/remote_cshared.go
@@ -4,8 +4,8 @@ package main
import (
"C"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/clients/common"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/clients/common"
)
//export c_Remote_get_Endpoint
diff --git a/cshared/repository_cshared.go b/cshared/repository_cshared.go
index 1c8fa9d..8320f98 100644
--- a/cshared/repository_cshared.go
+++ b/cshared/repository_cshared.go
@@ -4,9 +4,9 @@ package main
import (
"C"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
)
//export c_Repository
diff --git a/cshared/tag_cshared.go b/cshared/tag_cshared.go
index e188e2c..d138f63 100644
--- a/cshared/tag_cshared.go
+++ b/cshared/tag_cshared.go
@@ -5,8 +5,8 @@ import (
"C"
"io"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
)
func c_Tag_get_Hash(t uint64) *C.char {
diff --git a/cshared/tree_cshared.go b/cshared/tree_cshared.go
index e1f3ae1..3884817 100644
--- a/cshared/tree_cshared.go
+++ b/cshared/tree_cshared.go
@@ -4,8 +4,8 @@ package main
import (
"C"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
)
//export c_Tree_get_Entries_len
diff --git a/diff/diff_ext_test.go b/diff/diff_ext_test.go
index 1fa3a78..484c26e 100644
--- a/diff/diff_ext_test.go
+++ b/diff/diff_ext_test.go
@@ -3,7 +3,7 @@ package diff_test
import (
"testing"
- "gopkg.in/src-d/go-git.v3/diff"
+ "gopkg.in/src-d/go-git.v4/diff"
"github.com/sergi/go-diff/diffmatchpatch"
. "gopkg.in/check.v1"
diff --git a/examples/basic/main.go b/examples/basic/main.go
index 652ebf1..6dc2ba1 100644
--- a/examples/basic/main.go
+++ b/examples/basic/main.go
@@ -5,7 +5,7 @@ import (
"io"
"os"
- "gopkg.in/src-d/go-git.v3"
+ "gopkg.in/src-d/go-git.v4"
)
func main() {
diff --git a/examples/fs_implementation/main.go b/examples/fs_implementation/main.go
index 0371f7f..552a923 100644
--- a/examples/fs_implementation/main.go
+++ b/examples/fs_implementation/main.go
@@ -8,8 +8,8 @@ import (
"path/filepath"
"strings"
- "gopkg.in/src-d/go-git.v3"
- gogitFS "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4"
+ gogitFS "gopkg.in/src-d/go-git.v4/utils/fs"
)
func main() {
diff --git a/examples/latest/latest.go b/examples/latest/latest.go
index b443abe..9faf59f 100644
--- a/examples/latest/latest.go
+++ b/examples/latest/latest.go
@@ -4,7 +4,7 @@ import (
"fmt"
"os"
- "gopkg.in/src-d/go-git.v3"
+ "gopkg.in/src-d/go-git.v4"
)
func main() {
diff --git a/file_test.go b/file_test.go
index ad5abb3..e702ce7 100644
--- a/file_test.go
+++ b/file_test.go
@@ -3,7 +3,7 @@ package git
import (
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
. "gopkg.in/check.v1"
)
diff --git a/formats/idxfile/decoder.go b/formats/idxfile/decoder.go
index 72a9338..9cd249d 100644
--- a/formats/idxfile/decoder.go
+++ b/formats/idxfile/decoder.go
@@ -6,7 +6,7 @@ import (
"errors"
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
var (
diff --git a/formats/idxfile/idxfile.go b/formats/idxfile/idxfile.go
index 5f12dad..217027d 100644
--- a/formats/idxfile/idxfile.go
+++ b/formats/idxfile/idxfile.go
@@ -1,6 +1,6 @@
package idxfile
-import "gopkg.in/src-d/go-git.v3/core"
+import "gopkg.in/src-d/go-git.v4/core"
const (
// VersionSupported is the only idx version supported.
diff --git a/formats/objfile/common.go b/formats/objfile/common.go
index 2f0585f..839f92c 100644
--- a/formats/objfile/common.go
+++ b/formats/objfile/common.go
@@ -5,7 +5,7 @@ import (
"io"
"strconv"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
var (
diff --git a/formats/objfile/common_test.go b/formats/objfile/common_test.go
index 0c5a4cd..e443e73 100644
--- a/formats/objfile/common_test.go
+++ b/formats/objfile/common_test.go
@@ -6,7 +6,7 @@ import (
"testing"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
type objfileFixture struct {
diff --git a/formats/objfile/reader.go b/formats/objfile/reader.go
index b3c2e5c..5b17da0 100644
--- a/formats/objfile/reader.go
+++ b/formats/objfile/reader.go
@@ -4,7 +4,7 @@ import (
"errors"
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
"github.com/klauspost/compress/zlib"
)
diff --git a/formats/objfile/reader_test.go b/formats/objfile/reader_test.go
index b2c3d0c..ec191f6 100644
--- a/formats/objfile/reader_test.go
+++ b/formats/objfile/reader_test.go
@@ -8,7 +8,7 @@ import (
"io/ioutil"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
"github.com/klauspost/compress/zlib"
)
diff --git a/formats/objfile/writer.go b/formats/objfile/writer.go
index d9d40f0..8337a3a 100644
--- a/formats/objfile/writer.go
+++ b/formats/objfile/writer.go
@@ -4,7 +4,7 @@ import (
"errors"
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
"github.com/klauspost/compress/zlib"
)
diff --git a/formats/objfile/writer_test.go b/formats/objfile/writer_test.go
index 160491c..ab5a5bf 100644
--- a/formats/objfile/writer_test.go
+++ b/formats/objfile/writer_test.go
@@ -7,7 +7,7 @@ import (
"io"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
type SuiteWriter struct{}
diff --git a/formats/packfile/decoder.go b/formats/packfile/decoder.go
index e8c5c6a..2b5ef88 100644
--- a/formats/packfile/decoder.go
+++ b/formats/packfile/decoder.go
@@ -3,7 +3,7 @@ package packfile
import (
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Format specifies if the packfile uses ref-deltas or ofs-deltas.
diff --git a/formats/packfile/decoder_test.go b/formats/packfile/decoder_test.go
index 0c471a2..6bafa4f 100644
--- a/formats/packfile/decoder_test.go
+++ b/formats/packfile/decoder_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"time"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/storage/memory"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
"github.com/dustin/go-humanize"
. "gopkg.in/check.v1"
diff --git a/formats/packfile/parser.go b/formats/packfile/parser.go
index d3463bd..a7c4047 100644
--- a/formats/packfile/parser.go
+++ b/formats/packfile/parser.go
@@ -7,8 +7,8 @@ import (
"fmt"
"io"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/storage/memory"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
)
var (
diff --git a/formats/packfile/parser_test.go b/formats/packfile/parser_test.go
index 12d5f0d..ec9b19a 100644
--- a/formats/packfile/parser_test.go
+++ b/formats/packfile/parser_test.go
@@ -7,8 +7,8 @@ import (
"os"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/storage/memory"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
)
const (
diff --git a/formats/packfile/read_recaller.go b/formats/packfile/read_recaller.go
index 92ab1b2..a4157d1 100644
--- a/formats/packfile/read_recaller.go
+++ b/formats/packfile/read_recaller.go
@@ -1,6 +1,6 @@
package packfile
-import "gopkg.in/src-d/go-git.v3/core"
+import "gopkg.in/src-d/go-git.v4/core"
var (
// ErrDuplicatedObject is returned by Remember if an object appears several
diff --git a/formats/packfile/read_recaller_impl_test.go b/formats/packfile/read_recaller_impl_test.go
index 438439d..8de7e2a 100644
--- a/formats/packfile/read_recaller_impl_test.go
+++ b/formats/packfile/read_recaller_impl_test.go
@@ -6,8 +6,8 @@ import (
"io/ioutil"
"os"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/storage/memory"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
. "gopkg.in/check.v1"
)
diff --git a/formats/packfile/seekable.go b/formats/packfile/seekable.go
index ea1c501..37b4ee9 100644
--- a/formats/packfile/seekable.go
+++ b/formats/packfile/seekable.go
@@ -4,7 +4,7 @@ import (
"io"
"os"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Seekable implements ReadRecaller for the io.ReadSeeker of a packfile.
diff --git a/formats/packfile/stream.go b/formats/packfile/stream.go
index 41266b1..34ffd2f 100644
--- a/formats/packfile/stream.go
+++ b/formats/packfile/stream.go
@@ -3,7 +3,7 @@ package packfile
import (
"io"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Stream implements ReadRecaller for the io.Reader of a packfile. This
diff --git a/objects.go b/objects.go
index 2d38897..6f3549b 100644
--- a/objects.go
+++ b/objects.go
@@ -7,7 +7,7 @@ import (
"strconv"
"time"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// ErrUnsupportedObject trigger when a non-supported object is being decoded.
diff --git a/objects_test.go b/objects_test.go
index 4beeeba..4aa835d 100644
--- a/objects_test.go
+++ b/objects_test.go
@@ -4,8 +4,8 @@ import (
"io/ioutil"
"time"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/storage/memory"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
. "gopkg.in/check.v1"
)
diff --git a/references.go b/references.go
index 29f9a71..9e969d8 100644
--- a/references.go
+++ b/references.go
@@ -3,8 +3,8 @@ package git
import (
"io"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/diff"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/diff"
"github.com/sergi/go-diff/diffmatchpatch"
)
diff --git a/references_test.go b/references_test.go
index 7e003bd..5d93a25 100644
--- a/references_test.go
+++ b/references_test.go
@@ -5,8 +5,8 @@ import (
"fmt"
"os"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
. "gopkg.in/check.v1"
)
diff --git a/remote.go b/remote.go
index 2b3748d..f450271 100644
--- a/remote.go
+++ b/remote.go
@@ -4,9 +4,9 @@ import (
"fmt"
"io"
- "gopkg.in/src-d/go-git.v3/clients"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/clients"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Remote represents a connection to a remote repository
diff --git a/remote_test.go b/remote_test.go
index 381609e..9e3e678 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -1,10 +1,10 @@
package git
import (
- "gopkg.in/src-d/go-git.v3/clients/http"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
- "gopkg.in/src-d/go-git.v3/storage/memory"
+ "gopkg.in/src-d/go-git.v4/clients/http"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
. "gopkg.in/check.v1"
)
diff --git a/repository.go b/repository.go
index 866f9ff..0cd0d35 100644
--- a/repository.go
+++ b/repository.go
@@ -4,12 +4,12 @@ import (
"errors"
"fmt"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
- "gopkg.in/src-d/go-git.v3/storage/memory"
- "gopkg.in/src-d/go-git.v3/storage/seekable"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
+ "gopkg.in/src-d/go-git.v4/storage/seekable"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
)
var (
diff --git a/repository_test.go b/repository_test.go
index 80a765c..f2709eb 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -4,10 +4,10 @@ import (
"fmt"
"os"
- "gopkg.in/src-d/go-git.v3/clients/http"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/storage/seekable"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4/clients/http"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/storage/seekable"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
"github.com/alcortesm/tgz"
. "gopkg.in/check.v1"
diff --git a/storage/memory/object.go b/storage/memory/object.go
index 1720ebd..8c35360 100644
--- a/storage/memory/object.go
+++ b/storage/memory/object.go
@@ -4,7 +4,7 @@ import (
"bytes"
"io/ioutil"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Object on memory core.Object implementation
diff --git a/storage/memory/object_test.go b/storage/memory/object_test.go
index 3271254..c252626 100644
--- a/storage/memory/object_test.go
+++ b/storage/memory/object_test.go
@@ -5,7 +5,7 @@ import (
"testing"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
func Test(t *testing.T) { TestingT(t) }
diff --git a/storage/memory/storage.go b/storage/memory/storage.go
index 84de980..62fd1b4 100644
--- a/storage/memory/storage.go
+++ b/storage/memory/storage.go
@@ -3,7 +3,7 @@ package memory
import (
"fmt"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
var ErrUnsupportedObjectType = fmt.Errorf("unsupported object type")
diff --git a/storage/memory/storage_test.go b/storage/memory/storage_test.go
index 19f4476..200dbba 100644
--- a/storage/memory/storage_test.go
+++ b/storage/memory/storage_test.go
@@ -2,7 +2,7 @@ package memory
import (
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
type ObjectStorageSuite struct{}
diff --git a/storage/seekable/internal/gitdir/gitdir.go b/storage/seekable/internal/gitdir/gitdir.go
index d3149ee..b5497b8 100644
--- a/storage/seekable/internal/gitdir/gitdir.go
+++ b/storage/seekable/internal/gitdir/gitdir.go
@@ -6,9 +6,9 @@ import (
"os"
"strings"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
)
const (
diff --git a/storage/seekable/internal/gitdir/gitdir_test.go b/storage/seekable/internal/gitdir/gitdir_test.go
index 7504119..a02e0f4 100644
--- a/storage/seekable/internal/gitdir/gitdir_test.go
+++ b/storage/seekable/internal/gitdir/gitdir_test.go
@@ -6,9 +6,9 @@ import (
"strings"
"testing"
- "gopkg.in/src-d/go-git.v3/clients/common"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
"github.com/alcortesm/tgz"
. "gopkg.in/check.v1"
diff --git a/storage/seekable/internal/gitdir/refs.go b/storage/seekable/internal/gitdir/refs.go
index 9c2e8fb..cfd42fd 100644
--- a/storage/seekable/internal/gitdir/refs.go
+++ b/storage/seekable/internal/gitdir/refs.go
@@ -7,7 +7,7 @@ import (
"os"
"strings"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
var (
diff --git a/storage/seekable/internal/index/index.go b/storage/seekable/internal/index/index.go
index 8e041bd..4282f3e 100644
--- a/storage/seekable/internal/index/index.go
+++ b/storage/seekable/internal/index/index.go
@@ -4,9 +4,9 @@ import (
"fmt"
"io"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/idxfile"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/idxfile"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
)
// Index is a database of objects and their offset in a packfile.
diff --git a/storage/seekable/internal/index/index_test.go b/storage/seekable/internal/index/index_test.go
index 49b3a9d..4ddfc25 100644
--- a/storage/seekable/internal/index/index_test.go
+++ b/storage/seekable/internal/index/index_test.go
@@ -4,8 +4,8 @@ import (
"os"
"testing"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/idxfile"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/idxfile"
. "gopkg.in/check.v1"
)
diff --git a/storage/seekable/storage.go b/storage/seekable/storage.go
index db436c8..9cc37ba 100644
--- a/storage/seekable/storage.go
+++ b/storage/seekable/storage.go
@@ -5,11 +5,11 @@ import (
"os"
"strings"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
- "gopkg.in/src-d/go-git.v3/storage/seekable/internal/gitdir"
- "gopkg.in/src-d/go-git.v3/storage/seekable/internal/index"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/storage/seekable/internal/gitdir"
+ "gopkg.in/src-d/go-git.v4/storage/seekable/internal/index"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
)
// ObjectStorage is an implementation of core.ObjectStorage that stores
diff --git a/storage/seekable/storage_test.go b/storage/seekable/storage_test.go
index bc0ad3d..2002d2b 100644
--- a/storage/seekable/storage_test.go
+++ b/storage/seekable/storage_test.go
@@ -7,12 +7,12 @@ import (
"sort"
"testing"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
- "gopkg.in/src-d/go-git.v3/storage/memory"
- "gopkg.in/src-d/go-git.v3/storage/seekable"
- "gopkg.in/src-d/go-git.v3/storage/seekable/internal/gitdir"
- "gopkg.in/src-d/go-git.v3/utils/fs"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/storage/memory"
+ "gopkg.in/src-d/go-git.v4/storage/seekable"
+ "gopkg.in/src-d/go-git.v4/storage/seekable/internal/gitdir"
+ "gopkg.in/src-d/go-git.v4/utils/fs"
"github.com/alcortesm/tgz"
. "gopkg.in/check.v1"
diff --git a/tag.go b/tag.go
index 192d22b..5e8963b 100644
--- a/tag.go
+++ b/tag.go
@@ -7,7 +7,7 @@ import (
"io"
"io/ioutil"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
// Tag represents an annotated tag object. It points to a single git object of
diff --git a/tag_test.go b/tag_test.go
index 239dec3..a66cac1 100644
--- a/tag_test.go
+++ b/tag_test.go
@@ -6,7 +6,7 @@ import (
"time"
. "gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
type expectedTag struct {
diff --git a/tree.go b/tree.go
index 7135813..5896c7a 100644
--- a/tree.go
+++ b/tree.go
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
const (
diff --git a/tree_diff.go b/tree_diff.go
index 9c550dd..bad2230 100644
--- a/tree_diff.go
+++ b/tree_diff.go
@@ -7,7 +7,7 @@ import (
"sort"
"strings"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
)
type Action int
diff --git a/tree_diff_test.go b/tree_diff_test.go
index 93b9b74..7182530 100644
--- a/tree_diff_test.go
+++ b/tree_diff_test.go
@@ -4,8 +4,8 @@ import (
"os"
"sort"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
. "gopkg.in/check.v1"
)
diff --git a/tree_test.go b/tree_test.go
index 16dc7db..92ae156 100644
--- a/tree_test.go
+++ b/tree_test.go
@@ -4,7 +4,7 @@ import (
"io"
"sort"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
. "gopkg.in/check.v1"
)
diff --git a/tree_walker_test.go b/tree_walker_test.go
index 44ddf50..28e41f2 100644
--- a/tree_walker_test.go
+++ b/tree_walker_test.go
@@ -5,7 +5,7 @@ import (
"os"
"strconv"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4/core"
. "gopkg.in/check.v1"
)
diff --git a/utils/difftree/difftree.go b/utils/difftree/difftree.go
index 76bdb84..e2cb9a5 100644
--- a/utils/difftree/difftree.go
+++ b/utils/difftree/difftree.go
@@ -7,8 +7,8 @@ import (
"sort"
"strings"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
)
type Action int
diff --git a/utils/difftree/difftree_test.go b/utils/difftree/difftree_test.go
index df8fe4c..558d64d 100644
--- a/utils/difftree/difftree_test.go
+++ b/utils/difftree/difftree_test.go
@@ -5,9 +5,9 @@ import (
"sort"
"testing"
- "gopkg.in/src-d/go-git.v3"
- "gopkg.in/src-d/go-git.v3/core"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
+ "gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
. "gopkg.in/check.v1"
)