+1
-1
.travis.yml
+1
-1
.travis.yml
+1
-1
Makefile
+1
-1
Makefile
+3
-3
README.md
+3
-3
README.md
···
1
1

2
-
[](https://godoc.org/github.com/src-d/go-git) [](https://travis-ci.org/src-d/go-git) [](https://ci.appveyor.com/project/mcuadros/go-git) [](https://codecov.io/github/src-d/go-git) [](https://goreportcard.com/report/github.com/src-d/go-git)
2
+
[](https://godoc.org/github.com/src-d/go-git) [](https://travis-ci.org/src-d/go-git) [](https://ci.appveyor.com/project/mcuadros/go-git) [](https://codecov.io/github/src-d/go-git) [](https://goreportcard.com/report/github.com/src-d/go-git)
3
3
4
4
*go-git* is a highly extensible git implementation library written in **pure Go**.
5
5
6
-
It can be used to manipulate git repositories at low level *(plumbing)* or high level *(porcelain)*, through an idiomatic Go API. It also supports several types of storage, such as in-memory filesystems, or custom implementations thanks to the [`Storer`](https://godoc.org/gopkg.in/src-d/go-git.v4/plumbing/storer) interface.
6
+
It can be used to manipulate git repositories at low level *(plumbing)* or high level *(porcelain)*, through an idiomatic Go API. It also supports several types of storage, such as in-memory filesystems, or custom implementations thanks to the [`Storer`](https://godoc.org/github.com/go-git/go-git/v5/plumbing/storer) interface.
7
7
8
8
It's being actively developed since 2015 and is being used extensively by [source{d}](https://sourced.tech/) and [Keybase](https://keybase.io/blog/encrypted-git-for-everyone), and by many other libraries and tools.
9
9
···
21
21
The recommended way to install *go-git* is:
22
22
23
23
```
24
-
go get -u gopkg.in/src-d/go-git.v4/...
24
+
go get -u github.com/go-git/go-git/v5/...
25
25
```
26
26
27
27
> We use [gopkg.in](http://labix.org/gopkg.in) to version the API, this means that when `go get` clones the package, it's the latest tag matching `v4.*` that is cloned and not the master branch.
+3
-3
_examples/branch/main.go
+3
-3
_examples/branch/main.go
···
3
3
import (
4
4
"os"
5
5
6
-
"gopkg.in/src-d/go-git.v4"
7
-
. "gopkg.in/src-d/go-git.v4/_examples"
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
6
+
"github.com/go-git/go-git/v5"
7
+
. "github.com/go-git/go-git/v5/_examples"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
9
)
10
10
11
11
// An example of how to create and remove branches or any other kind of reference.
+3
-3
_examples/checkout/main.go
+3
-3
_examples/checkout/main.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
+
"github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
10
)
11
11
12
12
// Basic example of how to checkout a specific commit.
+3
-3
_examples/clone/auth/basic/access_token/main.go
+3
-3
_examples/clone/auth/basic/access_token/main.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
git "gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
7
+
git "github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing/transport/http"
10
10
)
11
11
12
12
func main() {
+3
-3
_examples/clone/auth/basic/username_password/main.go
+3
-3
_examples/clone/auth/basic/username_password/main.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
git "gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
7
+
git "github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing/transport/http"
10
10
)
11
11
12
12
func main() {
+2
-2
_examples/clone/main.go
+2
-2
_examples/clone/main.go
+3
-3
_examples/commit/main.go
+3
-3
_examples/commit/main.go
···
7
7
"path/filepath"
8
8
"time"
9
9
10
-
"gopkg.in/src-d/go-git.v4"
11
-
. "gopkg.in/src-d/go-git.v4/_examples"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
10
+
"github.com/go-git/go-git/v5"
11
+
. "github.com/go-git/go-git/v5/_examples"
12
+
"github.com/go-git/go-git/v5/plumbing/object"
13
13
)
14
14
15
15
// Basic example of how to commit changes to the current branch to an existing
+1
-1
_examples/common_test.go
+1
-1
_examples/common_test.go
+2
-2
_examples/context/main.go
+2
-2
_examples/context/main.go
+5
-5
_examples/custom_http/main.go
+5
-5
_examples/custom_http/main.go
···
7
7
"os"
8
8
"time"
9
9
10
-
"gopkg.in/src-d/go-git.v4"
11
-
. "gopkg.in/src-d/go-git.v4/_examples"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/client"
13
-
githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http"
14
-
"gopkg.in/src-d/go-git.v4/storage/memory"
10
+
"github.com/go-git/go-git/v5"
11
+
. "github.com/go-git/go-git/v5/_examples"
12
+
"github.com/go-git/go-git/v5/plumbing/transport/client"
13
+
githttp "github.com/go-git/go-git/v5/plumbing/transport/http"
14
+
"github.com/go-git/go-git/v5/storage/memory"
15
15
)
16
16
17
17
// Here is an example to configure http client according to our own needs.
+4
-4
_examples/log/main.go
+4
-4
_examples/log/main.go
···
4
4
"fmt"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
10
-
"gopkg.in/src-d/go-git.v4/storage/memory"
7
+
"github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing/object"
10
+
"github.com/go-git/go-git/v5/storage/memory"
11
11
)
12
12
13
13
// Example of how to:
+3
-3
_examples/ls-remote/main.go
+3
-3
_examples/ls-remote/main.go
···
3
3
import (
4
4
"log"
5
5
6
-
"gopkg.in/src-d/go-git.v4"
7
-
"gopkg.in/src-d/go-git.v4/config"
8
-
"gopkg.in/src-d/go-git.v4/storage/memory"
6
+
"github.com/go-git/go-git/v5"
7
+
"github.com/go-git/go-git/v5/config"
8
+
"github.com/go-git/go-git/v5/storage/memory"
9
9
)
10
10
11
11
// Retrieve remote tags without cloning repository
+10
-10
_examples/ls/main.go
+10
-10
_examples/ls/main.go
···
8
8
"strings"
9
9
10
10
"github.com/emirpasic/gods/trees/binaryheap"
11
-
"gopkg.in/src-d/go-git.v4"
12
-
. "gopkg.in/src-d/go-git.v4/_examples"
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
15
-
commitgraph_fmt "gopkg.in/src-d/go-git.v4/plumbing/format/commitgraph"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/object/commitgraph"
18
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
11
+
"github.com/go-git/go-git/v5"
12
+
. "github.com/go-git/go-git/v5/_examples"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/cache"
15
+
commitgraph_fmt "github.com/go-git/go-git/v5/plumbing/format/commitgraph"
16
+
"github.com/go-git/go-git/v5/plumbing/object"
17
+
"github.com/go-git/go-git/v5/plumbing/object/commitgraph"
18
+
"github.com/go-git/go-git/v5/storage/filesystem"
19
19
20
-
"gopkg.in/src-d/go-billy.v4"
21
-
"gopkg.in/src-d/go-billy.v4/osfs"
20
+
"github.com/go-git/go-billy/v5"
21
+
"github.com/go-git/go-billy/v5/osfs"
22
22
)
23
23
24
24
// Example how to resolve a revision into its commit counterpart
+1
-1
_examples/merge_base/helpers.go
+1
-1
_examples/merge_base/helpers.go
+3
-3
_examples/merge_base/main.go
+3
-3
_examples/merge_base/main.go
···
3
3
import (
4
4
"os"
5
5
6
-
"gopkg.in/src-d/go-git.v4"
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
6
+
"github.com/go-git/go-git/v5"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
9
)
10
10
11
11
type exitCode int
+3
-3
_examples/open/main.go
+3
-3
_examples/open/main.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
7
+
"github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing/object"
10
10
)
11
11
12
12
// Open an existing repository in a specific folder.
+2
-2
_examples/progress/main.go
+2
-2
_examples/progress/main.go
+2
-2
_examples/pull/main.go
+2
-2
_examples/pull/main.go
+2
-2
_examples/push/main.go
+2
-2
_examples/push/main.go
+5
-5
_examples/remotes/main.go
+5
-5
_examples/remotes/main.go
···
3
3
import (
4
4
"fmt"
5
5
6
-
"gopkg.in/src-d/go-git.v4"
7
-
. "gopkg.in/src-d/go-git.v4/_examples"
8
-
"gopkg.in/src-d/go-git.v4/config"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/storage/memory"
6
+
"github.com/go-git/go-git/v5"
7
+
. "github.com/go-git/go-git/v5/_examples"
8
+
"github.com/go-git/go-git/v5/config"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/storage/memory"
11
11
)
12
12
13
13
// Example of how to:
+3
-3
_examples/revision/main.go
+3
-3
_examples/revision/main.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
+
"github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
10
)
11
11
12
12
// Example how to resolve a revision into its commit counterpart
+3
-3
_examples/showcase/main.go
+3
-3
_examples/showcase/main.go
···
5
5
"os"
6
6
"strings"
7
7
8
-
"gopkg.in/src-d/go-git.v4"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
8
+
"github.com/go-git/go-git/v5"
9
+
"github.com/go-git/go-git/v5/plumbing/object"
10
10
11
-
. "gopkg.in/src-d/go-git.v4/_examples"
11
+
. "github.com/go-git/go-git/v5/_examples"
12
12
)
13
13
14
14
// Example of an specific use case:
+1
-1
_examples/storage/README.md
+1
-1
_examples/storage/README.md
···
8
8
### and what this means ...
9
9
*git* has a very well defined storage system, the `.git` directory, present on any repository. This is the place where `git` stores all the [`objects`](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects), [`references`](https://git-scm.com/book/es/v2/Git-Internals-Git-References) and [`configuration`](https://git-scm.com/docs/git-config#_configuration_file). This information is stored in plain files.
10
10
11
-
Our original **go-git** version was designed to work in memory, some time after we added support to read the `.git`, and now we have added support for fully customized [storages](https://godoc.org/gopkg.in/src-d/go-git.v4/storage#Storer).
11
+
Our original **go-git** version was designed to work in memory, some time after we added support to read the `.git`, and now we have added support for fully customized [storages](https://godoc.org/github.com/go-git/go-git/v5/storage#Storer).
12
12
13
13
This means that the internal database of any repository can be saved and accessed on any support, databases, distributed filesystems, etc. This functionality is pretty similar to the [libgit2 backends](http://blog.deveo.com/your-git-repository-in-a-database-pluggable-backends-in-libgit2/)
14
14
+4
-4
_examples/tag/main.go
+4
-4
_examples/tag/main.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4"
8
-
. "gopkg.in/src-d/go-git.v4/_examples"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
7
+
"github.com/go-git/go-git/v5"
8
+
. "github.com/go-git/go-git/v5/_examples"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/object"
11
11
)
12
12
13
13
// Basic example of how to list tags.
+3
-3
blame.go
+3
-3
blame.go
···
9
9
"time"
10
10
"unicode/utf8"
11
11
12
-
"gopkg.in/src-d/go-git.v4/plumbing"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
14
-
"gopkg.in/src-d/go-git.v4/utils/diff"
12
+
"github.com/go-git/go-git/v5/plumbing"
13
+
"github.com/go-git/go-git/v5/plumbing/object"
14
+
"github.com/go-git/go-git/v5/utils/diff"
15
15
)
16
16
17
17
// BlameResult represents the result of a Blame operation.
+2
-2
blame_test.go
+2
-2
blame_test.go
+1
-1
cli/go-git/receive_pack.go
+1
-1
cli/go-git/receive_pack.go
+1
-1
cli/go-git/upload_pack.go
+1
-1
cli/go-git/upload_pack.go
+9
-9
common_test.go
+9
-9
common_test.go
···
3
3
import (
4
4
"testing"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
10
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
11
-
"gopkg.in/src-d/go-git.v4/storage/memory"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
9
+
"github.com/go-git/go-git/v5/plumbing/transport"
10
+
"github.com/go-git/go-git/v5/storage/filesystem"
11
+
"github.com/go-git/go-git/v5/storage/memory"
12
12
13
+
"github.com/go-git/go-billy/v5"
14
+
"github.com/go-git/go-billy/v5/memfs"
15
+
"github.com/go-git/go-billy/v5/util"
13
16
. "gopkg.in/check.v1"
14
-
"gopkg.in/src-d/go-billy.v4"
15
-
"gopkg.in/src-d/go-billy.v4/memfs"
16
-
"gopkg.in/src-d/go-billy.v4/util"
17
17
"gopkg.in/src-d/go-git-fixtures.v3"
18
18
)
19
19
+2
-2
config/branch.go
+2
-2
config/branch.go
+1
-1
config/branch_test.go
+1
-1
config/branch_test.go
+2
-2
config/config.go
+2
-2
config/config.go
+1
-1
config/config_test.go
+1
-1
config/config_test.go
+1
-1
config/modules.go
+1
-1
config/modules.go
+1
-1
config/refspec.go
+1
-1
config/refspec.go
+1
-1
config/refspec_test.go
+1
-1
config/refspec_test.go
+1
-1
doc.go
+1
-1
doc.go
+6
-6
example_test.go
+6
-6
example_test.go
···
8
8
"os"
9
9
"path/filepath"
10
10
11
-
"gopkg.in/src-d/go-git.v4"
12
-
"gopkg.in/src-d/go-git.v4/config"
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
15
-
"gopkg.in/src-d/go-git.v4/storage/memory"
11
+
"github.com/go-git/go-git/v5"
12
+
"github.com/go-git/go-git/v5/config"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/transport/http"
15
+
"github.com/go-git/go-git/v5/storage/memory"
16
16
17
-
"gopkg.in/src-d/go-billy.v4/memfs"
17
+
"github.com/go-git/go-billy/v5/memfs"
18
18
)
19
19
20
20
func ExampleClone() {
+8
-9
go.mod
+8
-9
go.mod
···
1
-
module gopkg.in/src-d/go-git.v4
1
+
module github.com/go-git/go-git/v5
2
2
3
3
require (
4
4
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 // indirect
···
7
7
github.com/emirpasic/gods v1.12.0
8
8
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
9
9
github.com/gliderlabs/ssh v0.2.2
10
+
github.com/go-git/go-billy/v5 v5.0.0
10
11
github.com/google/go-cmp v0.3.0
11
12
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
12
13
github.com/jessevdk/go-flags v1.4.0
13
14
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
14
15
github.com/mitchellh/go-homedir v1.1.0
15
-
github.com/pelletier/go-buffruneio v0.2.0 // indirect
16
16
github.com/pkg/errors v0.8.1 // indirect
17
-
github.com/sergi/go-diff v1.0.0
17
+
github.com/sergi/go-diff v1.1.0
18
18
github.com/src-d/gcfg v1.4.0
19
-
github.com/stretchr/objx v0.2.0 // indirect
20
19
github.com/xanzy/ssh-agent v0.2.1
21
-
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
22
-
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
20
+
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073
21
+
golang.org/x/net v0.0.0-20200301022130-244492dfa37a
23
22
golang.org/x/text v0.3.2
24
-
golang.org/x/tools v0.0.0-20190729092621-ff9f1409240a // indirect
25
-
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
26
-
gopkg.in/src-d/go-billy.v4 v4.3.2
23
+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
24
+
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
27
25
gopkg.in/src-d/go-git-fixtures.v3 v3.5.0
26
+
github.com/go-git/go-git/v5 v4.13.1
28
27
gopkg.in/warnings.v0 v0.1.2 // indirect
29
28
)
30
29
+26
-23
go.sum
+26
-23
go.sum
···
5
5
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
6
6
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
7
7
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
8
+
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
8
9
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
9
10
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
10
11
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
···
12
13
github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
13
14
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=
14
15
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
15
-
github.com/gliderlabs/ssh v0.1.3 h1:cBU46h1lYQk5f2Z+jZbewFKy+1zzE2aUX/ilcPDAm9M=
16
-
github.com/gliderlabs/ssh v0.1.3/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
17
16
github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
18
17
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
19
-
github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
20
-
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
18
+
github.com/go-git/go-billy/v5 v5.0.0 h1:7NQHvd9FVid8VL4qVUMm8XifBK+2xCoZ2lSk0agRrHM=
19
+
github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
21
20
github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
22
21
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
23
22
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
24
23
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
25
24
github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA=
26
25
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
27
-
github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e h1:RgQk53JHp/Cjunrr1WlsXSZpqXn+uREuHvUVcK82CV8=
28
-
github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
29
26
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd h1:Coekwdh0v2wtGp9Gmz1Ze3eVRAWJMLokvN3QjdzCHLY=
30
27
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
31
28
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
···
34
31
github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
35
32
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
36
33
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
34
+
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
35
+
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
37
36
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
38
37
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
39
-
github.com/pelletier/go-buffruneio v0.2.0 h1:U4t4R6YkofJ5xHm3dJzuRpPZ0mr5MMCoAWooScCR7aA=
38
+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
39
+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
40
40
github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo=
41
41
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
42
42
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
43
43
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
44
44
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
45
-
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
46
45
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
46
+
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
47
+
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
47
48
github.com/src-d/gcfg v1.4.0 h1:xXbNR5AlLSA315x2UO+fTSSAXCDf+Ar38/6oyGbDKQ4=
48
49
github.com/src-d/gcfg v1.4.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI=
49
50
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
50
51
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
51
-
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
52
52
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
53
+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
54
+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
53
55
github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70=
54
56
github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
55
57
golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
56
58
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
57
-
golang.org/x/crypto v0.0.0-20190422183909-d864b10871cd h1:sMHc2rZHuzQmrbVoSpt9HgerkXPyIeCSO6k0zUMGfFk=
58
-
golang.org/x/crypto v0.0.0-20190422183909-d864b10871cd/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
59
-
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc=
60
59
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
60
+
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 h1:xMPOj6Pz6UipU1wXLkrtqpHbR0AVFnyPEQq/wRWz9lM=
61
+
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
61
62
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
62
-
golang.org/x/net v0.0.0-20190420063019-afa5a82059c6 h1:HdqqaWmYAUI7/dmByKKEw+yxDksGSo+9GjkUc9Zp34E=
63
-
golang.org/x/net v0.0.0-20190420063019-afa5a82059c6/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
64
-
golang.org/x/net v0.0.0-20190502183928-7f726cade0ab h1:9RfW3ktsOZxgo9YNbBAjq1FWzc/igwEcUzZz8IXgSbk=
65
-
golang.org/x/net v0.0.0-20190502183928-7f726cade0ab/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
66
63
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
67
-
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 h1:Ao/3l156eZf2AW5wK8a7/smtodRU+gha3+BeqJ69lRk=
68
64
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
65
+
golang.org/x/net v0.0.0-20200301022130-244492dfa37a h1:GuSPYbZzB5/dcLNCwLQLsg3obCJtX9IJhpXkvY7kzk0=
66
+
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
69
67
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
70
-
golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9 h1:lkiLiLBHGoH3XnqSLUIaBsilGMUjI+Uy2Xu2JLUtTas=
71
-
golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
72
68
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
73
69
golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
74
70
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
75
-
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
76
-
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
77
71
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e h1:D5TXcfTk7xF7hvieo4QErS3qqCB4teTffacDWr7CI+0=
78
72
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
73
+
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 h1:uYVVQ9WP/Ds2ROhcaGPeIdVq0RIXVLwsHlnvJ+cT1So=
74
+
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
79
75
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
80
76
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
81
77
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
82
78
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
83
79
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
84
80
golang.org/x/tools v0.0.0-20190729092621-ff9f1409240a/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI=
81
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
85
82
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
86
83
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
87
-
gopkg.in/src-d/go-billy.v4 v4.3.0 h1:KtlZ4c1OWbIs4jCv5ZXrTqG8EQocr0g/d4DjNg70aek=
88
-
gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk=
84
+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
85
+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
86
+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
89
87
gopkg.in/src-d/go-billy.v4 v4.3.2 h1:0SQA1pRztfTFx2miS8sA97XvooFeNOmvUenF4o0EcVg=
90
88
gopkg.in/src-d/go-billy.v4 v4.3.2/go.mod h1:nDjArDMp+XMs1aFAESLRjfGSgfvoYN0hDfzEk0GjC98=
91
89
gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 h1:ivZFOIltbce2Mo8IjzUHAFoq/IylO9WHhNOAJK+LsJg=
92
90
gopkg.in/src-d/go-git-fixtures.v3 v3.5.0/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g=
91
+
github.com/go-git/go-git/v5 v4.13.1 h1:SRtFyV8Kxc0UP7aCHcijOMQGPxHSmMOPrzulQWolkYE=
92
+
github.com/go-git/go-git/v5 v4.13.1/go.mod h1:nx5NYcxdKxq5fpltdHnPa2Exj4Sx0EclMWZQbYDu2z8=
93
93
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
94
94
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
95
+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
96
+
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
97
+
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+4
-4
object_walker.go
+4
-4
object_walker.go
···
3
3
import (
4
4
"fmt"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
9
-
"gopkg.in/src-d/go-git.v4/storage"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/filemode"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
+
"github.com/go-git/go-git/v5/storage"
10
10
)
11
11
12
12
type objectWalker struct {
+5
-5
options.go
+5
-5
options.go
···
7
7
"time"
8
8
9
9
"golang.org/x/crypto/openpgp"
10
-
"gopkg.in/src-d/go-git.v4/config"
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
10
+
"github.com/go-git/go-git/v5/config"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/object"
13
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband"
14
+
"github.com/go-git/go-git/v5/plumbing/transport"
15
15
)
16
16
17
17
// SubmoduleRescursivity defines how depth will affect any submodule recursive
+1
-1
options_test.go
+1
-1
options_test.go
+1
-1
plumbing/cache/common.go
+1
-1
plumbing/cache/common.go
+1
-1
plumbing/cache/object_lru.go
+1
-1
plumbing/cache/object_lru.go
+1
-1
plumbing/cache/object_test.go
+1
-1
plumbing/cache/object_test.go
+1
-1
plumbing/format/commitgraph/commitgraph.go
+1
-1
plumbing/format/commitgraph/commitgraph.go
+2
-2
plumbing/format/commitgraph/commitgraph_test.go
+2
-2
plumbing/format/commitgraph/commitgraph_test.go
···
8
8
9
9
. "gopkg.in/check.v1"
10
10
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/commitgraph"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/format/commitgraph"
13
13
)
14
14
15
15
func Test(t *testing.T) { TestingT(t) }
+2
-2
plumbing/format/commitgraph/encoder.go
+2
-2
plumbing/format/commitgraph/encoder.go
+2
-2
plumbing/format/commitgraph/file.go
+2
-2
plumbing/format/commitgraph/file.go
+1
-1
plumbing/format/commitgraph/memory.go
+1
-1
plumbing/format/commitgraph/memory.go
+2
-2
plumbing/format/diff/patch.go
+2
-2
plumbing/format/diff/patch.go
+1
-1
plumbing/format/diff/unified_encoder.go
+1
-1
plumbing/format/diff/unified_encoder.go
+2
-2
plumbing/format/diff/unified_encoder_test.go
+2
-2
plumbing/format/diff/unified_encoder_test.go
+3
-3
plumbing/format/gitattributes/dir.go
+3
-3
plumbing/format/gitattributes/dir.go
···
4
4
"os"
5
5
"os/user"
6
6
7
-
"gopkg.in/src-d/go-billy.v4"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/format/config"
9
-
gioutil "gopkg.in/src-d/go-git.v4/utils/ioutil"
7
+
"github.com/go-git/go-billy/v5"
8
+
"github.com/go-git/go-git/v5/plumbing/format/config"
9
+
gioutil "github.com/go-git/go-git/v5/utils/ioutil"
10
10
)
11
11
12
12
const (
+2
-2
plumbing/format/gitattributes/dir_test.go
+2
-2
plumbing/format/gitattributes/dir_test.go
+3
-3
plumbing/format/gitignore/dir.go
+3
-3
plumbing/format/gitignore/dir.go
···
7
7
"os/user"
8
8
"strings"
9
9
10
-
"gopkg.in/src-d/go-billy.v4"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/config"
12
-
gioutil "gopkg.in/src-d/go-git.v4/utils/ioutil"
10
+
"github.com/go-git/go-billy/v5"
11
+
"github.com/go-git/go-git/v5/plumbing/format/config"
12
+
gioutil "github.com/go-git/go-git/v5/utils/ioutil"
13
13
)
14
14
15
15
const (
+3
-3
plumbing/format/gitignore/dir_test.go
+3
-3
plumbing/format/gitignore/dir_test.go
···
5
5
"os/user"
6
6
"strconv"
7
7
8
+
"github.com/go-git/go-billy/v5"
9
+
"github.com/go-git/go-billy/v5/memfs"
8
10
. "gopkg.in/check.v1"
9
-
"gopkg.in/src-d/go-billy.v4"
10
-
"gopkg.in/src-d/go-billy.v4/memfs"
11
11
)
12
12
13
13
type MatcherSuite struct {
···
17
17
MEFS billy.Filesystem // root that contains user home, but missing excludesfile entry
18
18
MIFS billy.Filesystem // root that contains user home, but missing .gitnignore
19
19
20
-
SFS billy.Filesystem // root that contains /etc/gitconfig
20
+
SFS billy.Filesystem // root that contains /etc/gitconfig
21
21
}
22
22
23
23
var _ = Suite(&MatcherSuite{})
+1
-1
plumbing/format/idxfile/decoder.go
+1
-1
plumbing/format/idxfile/decoder.go
+2
-2
plumbing/format/idxfile/decoder_test.go
+2
-2
plumbing/format/idxfile/decoder_test.go
···
8
8
"io/ioutil"
9
9
"testing"
10
10
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
. "gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
. "github.com/go-git/go-git/v5/plumbing/format/idxfile"
13
13
14
14
. "gopkg.in/check.v1"
15
15
"gopkg.in/src-d/go-git-fixtures.v3"
+1
-1
plumbing/format/idxfile/encoder.go
+1
-1
plumbing/format/idxfile/encoder.go
+1
-1
plumbing/format/idxfile/encoder_test.go
+1
-1
plumbing/format/idxfile/encoder_test.go
+1
-1
plumbing/format/idxfile/idxfile.go
+1
-1
plumbing/format/idxfile/idxfile.go
+2
-2
plumbing/format/idxfile/idxfile_test.go
+2
-2
plumbing/format/idxfile/idxfile_test.go
···
7
7
"io"
8
8
"testing"
9
9
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
12
12
13
13
. "gopkg.in/check.v1"
14
14
"gopkg.in/src-d/go-git-fixtures.v3"
+2
-2
plumbing/format/idxfile/writer.go
+2
-2
plumbing/format/idxfile/writer.go
+3
-3
plumbing/format/idxfile/writer_test.go
+3
-3
plumbing/format/idxfile/writer_test.go
···
5
5
"encoding/base64"
6
6
"io/ioutil"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
10
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
11
11
12
12
. "gopkg.in/check.v1"
13
13
"gopkg.in/src-d/go-git-fixtures.v3"
+2
-2
plumbing/format/index/decoder.go
+2
-2
plumbing/format/index/decoder.go
+2
-2
plumbing/format/index/decoder_test.go
+2
-2
plumbing/format/index/decoder_test.go
+1
-1
plumbing/format/index/encoder.go
+1
-1
plumbing/format/index/encoder.go
+1
-1
plumbing/format/index/encoder_test.go
+1
-1
plumbing/format/index/encoder_test.go
+2
-2
plumbing/format/index/index.go
+2
-2
plumbing/format/index/index.go
+1
-1
plumbing/format/objfile/common_test.go
+1
-1
plumbing/format/objfile/common_test.go
+2
-2
plumbing/format/objfile/reader.go
+2
-2
plumbing/format/objfile/reader.go
+1
-1
plumbing/format/objfile/reader_test.go
+1
-1
plumbing/format/objfile/reader_test.go
+1
-1
plumbing/format/objfile/writer.go
+1
-1
plumbing/format/objfile/writer.go
+1
-1
plumbing/format/objfile/writer_test.go
+1
-1
plumbing/format/objfile/writer_test.go
+2
-2
plumbing/format/packfile/common.go
+2
-2
plumbing/format/packfile/common.go
+2
-2
plumbing/format/packfile/common_test.go
+2
-2
plumbing/format/packfile/common_test.go
+2
-2
plumbing/format/packfile/delta_selector.go
+2
-2
plumbing/format/packfile/delta_selector.go
+2
-2
plumbing/format/packfile/delta_selector_test.go
+2
-2
plumbing/format/packfile/delta_selector_test.go
+1
-1
plumbing/format/packfile/diff_delta.go
+1
-1
plumbing/format/packfile/diff_delta.go
+3
-3
plumbing/format/packfile/encoder.go
+3
-3
plumbing/format/packfile/encoder.go
···
6
6
"fmt"
7
7
"io"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
11
-
"gopkg.in/src-d/go-git.v4/utils/binary"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
+
"github.com/go-git/go-git/v5/utils/binary"
12
12
)
13
13
14
14
// Encoder gets the data from the storage and write it into the writer in PACK
+7
-7
plumbing/format/packfile/encoder_advanced_test.go
+7
-7
plumbing/format/packfile/encoder_advanced_test.go
···
6
6
"math/rand"
7
7
"testing"
8
8
9
-
"gopkg.in/src-d/go-billy.v4/memfs"
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
13
-
. "gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
15
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
9
+
"github.com/go-git/go-billy/v5/memfs"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/cache"
12
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
13
+
. "github.com/go-git/go-git/v5/plumbing/format/packfile"
14
+
"github.com/go-git/go-git/v5/plumbing/storer"
15
+
"github.com/go-git/go-git/v5/storage/filesystem"
16
16
17
17
. "gopkg.in/check.v1"
18
18
"gopkg.in/src-d/go-git-fixtures.v3"
+4
-4
plumbing/format/packfile/encoder_test.go
+4
-4
plumbing/format/packfile/encoder_test.go
···
5
5
"io"
6
6
stdioutil "io/ioutil"
7
7
8
-
"gopkg.in/src-d/go-billy.v4/memfs"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
11
-
"gopkg.in/src-d/go-git.v4/storage/memory"
8
+
"github.com/go-git/go-billy/v5/memfs"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
11
+
"github.com/go-git/go-git/v5/storage/memory"
12
12
13
13
. "gopkg.in/check.v1"
14
14
"gopkg.in/src-d/go-git-fixtures.v3"
+4
-4
plumbing/format/packfile/fsobject.go
+4
-4
plumbing/format/packfile/fsobject.go
···
3
3
import (
4
4
"io"
5
5
6
-
billy "gopkg.in/src-d/go-billy.v4"
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
6
+
billy "github.com/go-git/go-billy/v5"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/cache"
9
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
10
10
)
11
11
12
12
// FSObject is an object from the packfile on the filesystem.
+1
-1
plumbing/format/packfile/object_pack.go
+1
-1
plumbing/format/packfile/object_pack.go
+1
-1
plumbing/format/packfile/object_pack_test.go
+1
-1
plumbing/format/packfile/object_pack_test.go
+5
-5
plumbing/format/packfile/packfile.go
+5
-5
plumbing/format/packfile/packfile.go
···
5
5
"io"
6
6
"os"
7
7
8
-
billy "gopkg.in/src-d/go-billy.v4"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
8
+
billy "github.com/go-git/go-billy/v5"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/cache"
11
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
12
+
"github.com/go-git/go-git/v5/plumbing/storer"
13
13
)
14
14
15
15
var (
+5
-5
plumbing/format/packfile/packfile_test.go
+5
-5
plumbing/format/packfile/packfile_test.go
···
4
4
"io"
5
5
"math"
6
6
7
+
"github.com/go-git/go-billy/v5/osfs"
7
8
. "gopkg.in/check.v1"
8
-
"gopkg.in/src-d/go-billy.v4/osfs"
9
9
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
12
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
13
+
"github.com/go-git/go-git/v5/plumbing/storer"
14
14
)
15
15
16
16
type PackfileSuite struct {
+3
-3
plumbing/format/packfile/parser.go
+3
-3
plumbing/format/packfile/parser.go
···
6
6
"io"
7
7
"io/ioutil"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/cache"
11
+
"github.com/go-git/go-git/v5/plumbing/storer"
12
12
)
13
13
14
14
var (
+4
-4
plumbing/format/packfile/parser_test.go
+4
-4
plumbing/format/packfile/parser_test.go
···
4
4
"io"
5
5
"testing"
6
6
7
-
git "gopkg.in/src-d/go-git.v4"
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
7
+
git "github.com/go-git/go-git/v5"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
11
12
12
. "gopkg.in/check.v1"
13
13
"gopkg.in/src-d/go-git-fixtures.v3"
+1
-1
plumbing/format/packfile/patch_delta.go
+1
-1
plumbing/format/packfile/patch_delta.go
+3
-3
plumbing/format/packfile/scanner.go
+3
-3
plumbing/format/packfile/scanner.go
···
11
11
stdioutil "io/ioutil"
12
12
"sync"
13
13
14
-
"gopkg.in/src-d/go-git.v4/plumbing"
15
-
"gopkg.in/src-d/go-git.v4/utils/binary"
16
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
14
+
"github.com/go-git/go-git/v5/plumbing"
15
+
"github.com/go-git/go-git/v5/utils/binary"
16
+
"github.com/go-git/go-git/v5/utils/ioutil"
17
17
)
18
18
19
19
var (
+1
-1
plumbing/format/packfile/scanner_test.go
+1
-1
plumbing/format/packfile/scanner_test.go
+1
-1
plumbing/format/pktline/encoder_test.go
+1
-1
plumbing/format/pktline/encoder_test.go
+1
-1
plumbing/format/pktline/scanner_test.go
+1
-1
plumbing/format/pktline/scanner_test.go
+3
-3
plumbing/object/blob.go
+3
-3
plumbing/object/blob.go
···
3
3
import (
4
4
"io"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
8
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/storer"
8
+
"github.com/go-git/go-git/v5/utils/ioutil"
9
9
)
10
10
11
11
// Blob is used to store arbitrary data - it is generally a file.
+1
-1
plumbing/object/blob_test.go
+1
-1
plumbing/object/blob_test.go
+1
-1
plumbing/object/change.go
+1
-1
plumbing/object/change.go
+2
-2
plumbing/object/change_adaptor.go
+2
-2
plumbing/object/change_adaptor.go
···
4
4
"errors"
5
5
"fmt"
6
6
7
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
7
+
"github.com/go-git/go-git/v5/utils/merkletrie"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
9
9
)
10
10
11
11
// The following functions transform changes types form the merkletrie
+7
-7
plumbing/object/change_adaptor_test.go
+7
-7
plumbing/object/change_adaptor_test.go
···
3
3
import (
4
4
"sort"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
10
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
11
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
12
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/filemode"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
+
"github.com/go-git/go-git/v5/storage/filesystem"
11
+
"github.com/go-git/go-git/v5/utils/merkletrie"
12
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
13
13
14
14
. "gopkg.in/check.v1"
15
15
"gopkg.in/src-d/go-git-fixtures.v3"
+7
-7
plumbing/object/change_test.go
+7
-7
plumbing/object/change_test.go
···
4
4
"context"
5
5
"sort"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/diff"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
12
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
13
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/cache"
9
+
"github.com/go-git/go-git/v5/plumbing/filemode"
10
+
"github.com/go-git/go-git/v5/plumbing/format/diff"
11
+
"github.com/go-git/go-git/v5/plumbing/storer"
12
+
"github.com/go-git/go-git/v5/storage/filesystem"
13
+
"github.com/go-git/go-git/v5/utils/merkletrie"
14
14
15
15
. "gopkg.in/check.v1"
16
16
"gopkg.in/src-d/go-git-fixtures.v3"
+3
-3
plumbing/object/commit.go
+3
-3
plumbing/object/commit.go
···
11
11
12
12
"golang.org/x/crypto/openpgp"
13
13
14
-
"gopkg.in/src-d/go-git.v4/plumbing"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
16
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
14
+
"github.com/go-git/go-git/v5/plumbing"
15
+
"github.com/go-git/go-git/v5/plumbing/storer"
16
+
"github.com/go-git/go-git/v5/utils/ioutil"
17
17
)
18
18
19
19
const (
+6
-6
plumbing/object/commit_stats_test.go
+6
-6
plumbing/object/commit_stats_test.go
···
4
4
"context"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4"
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
10
-
"gopkg.in/src-d/go-git.v4/storage/memory"
7
+
"github.com/go-git/go-git/v5"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/object"
10
+
"github.com/go-git/go-git/v5/storage/memory"
11
11
12
+
"github.com/go-git/go-billy/v5/memfs"
13
+
"github.com/go-git/go-billy/v5/util"
12
14
. "gopkg.in/check.v1"
13
-
"gopkg.in/src-d/go-billy.v4/memfs"
14
-
"gopkg.in/src-d/go-billy.v4/util"
15
15
"gopkg.in/src-d/go-git-fixtures.v3"
16
16
)
17
17
+3
-3
plumbing/object/commit_test.go
+3
-3
plumbing/object/commit_test.go
···
9
9
"time"
10
10
11
11
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
12
-
"gopkg.in/src-d/go-git.v4/plumbing"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
12
+
"github.com/go-git/go-git/v5/plumbing"
13
+
"github.com/go-git/go-git/v5/plumbing/cache"
14
14
15
15
. "gopkg.in/check.v1"
16
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
16
+
"github.com/go-git/go-git/v5/storage/filesystem"
17
17
)
18
18
19
19
type SuiteCommit struct {
+3
-3
plumbing/object/commit_walker.go
+3
-3
plumbing/object/commit_walker.go
···
4
4
"container/list"
5
5
"io"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
9
-
"gopkg.in/src-d/go-git.v4/storage"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/storer"
9
+
"github.com/go-git/go-git/v5/storage"
10
10
)
11
11
12
12
type commitPreIterator struct {
+2
-2
plumbing/object/commit_walker_bfs.go
+2
-2
plumbing/object/commit_walker_bfs.go
+2
-2
plumbing/object/commit_walker_bfs_filtered.go
+2
-2
plumbing/object/commit_walker_bfs_filtered.go
···
3
3
import (
4
4
"io"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/storer"
8
8
)
9
9
10
10
// NewFilterCommitIter returns a CommitIter that walks the commit history,
+2
-2
plumbing/object/commit_walker_bfs_filtered_test.go
+2
-2
plumbing/object/commit_walker_bfs_filtered_test.go
+2
-2
plumbing/object/commit_walker_ctime.go
+2
-2
plumbing/object/commit_walker_ctime.go
+1
-1
plumbing/object/commit_walker_limit.go
+1
-1
plumbing/object/commit_walker_limit.go
+2
-2
plumbing/object/commit_walker_path.go
+2
-2
plumbing/object/commit_walker_path.go
+1
-1
plumbing/object/commit_walker_test.go
+1
-1
plumbing/object/commit_walker_test.go
+3
-3
plumbing/object/commitgraph/commitnode.go
+3
-3
plumbing/object/commitgraph/commitnode.go
···
4
4
"io"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
10
)
11
11
12
12
// CommitNode is generic interface encapsulating a lightweight commit object retrieved
+4
-4
plumbing/object/commitgraph/commitnode_graph.go
+4
-4
plumbing/object/commitgraph/commitnode_graph.go
···
4
4
"fmt"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/format/commitgraph"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/format/commitgraph"
9
+
"github.com/go-git/go-git/v5/plumbing/object"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
11
)
12
12
13
13
// graphCommitNode is a reduced representation of Commit as presented in the commit
+3
-3
plumbing/object/commitgraph/commitnode_object.go
+3
-3
plumbing/object/commitgraph/commitnode_object.go
···
4
4
"math"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
10
)
11
11
12
12
// objectCommitNode is a representation of Commit as presented in the GIT object format.
+5
-5
plumbing/object/commitgraph/commitnode_test.go
+5
-5
plumbing/object/commitgraph/commitnode_test.go
···
6
6
7
7
. "gopkg.in/check.v1"
8
8
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/commitgraph"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
13
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/cache"
11
+
"github.com/go-git/go-git/v5/plumbing/format/commitgraph"
12
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
13
+
"github.com/go-git/go-git/v5/storage/filesystem"
14
14
)
15
15
16
16
func Test(t *testing.T) { TestingT(t) }
+2
-2
plumbing/object/commitgraph/commitnode_walker_ctime.go
+2
-2
plumbing/object/commitgraph/commitnode_walker_ctime.go
···
5
5
6
6
"github.com/emirpasic/gods/trees/binaryheap"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
10
)
11
11
12
12
type commitNodeIteratorByCTime struct {
+2
-2
plumbing/object/difftree.go
+2
-2
plumbing/object/difftree.go
···
4
4
"bytes"
5
5
"context"
6
6
7
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
7
+
"github.com/go-git/go-git/v5/utils/merkletrie"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
9
9
)
10
10
11
11
// DiffTree compares the content and mode of the blobs found via two
+8
-8
plumbing/object/difftree_test.go
+8
-8
plumbing/object/difftree_test.go
···
3
3
import (
4
4
"sort"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
11
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
12
-
"gopkg.in/src-d/go-git.v4/storage/memory"
13
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/filemode"
9
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
+
"github.com/go-git/go-git/v5/storage/filesystem"
12
+
"github.com/go-git/go-git/v5/storage/memory"
13
+
"github.com/go-git/go-git/v5/utils/merkletrie"
14
14
15
15
. "gopkg.in/check.v1"
16
16
"gopkg.in/src-d/go-git-fixtures.v3"
+4
-4
plumbing/object/file.go
+4
-4
plumbing/object/file.go
···
5
5
"io"
6
6
"strings"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
10
-
"gopkg.in/src-d/go-git.v4/utils/binary"
11
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
8
+
"github.com/go-git/go-git/v5/plumbing/filemode"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
+
"github.com/go-git/go-git/v5/utils/binary"
11
+
"github.com/go-git/go-git/v5/utils/ioutil"
12
12
)
13
13
14
14
// File represents git file objects.
+5
-5
plumbing/object/file_test.go
+5
-5
plumbing/object/file_test.go
···
3
3
import (
4
4
"io"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
10
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/filemode"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
+
"github.com/go-git/go-git/v5/storage/filesystem"
11
11
12
12
. "gopkg.in/check.v1"
13
13
"gopkg.in/src-d/go-git-fixtures.v3"
+2
-2
plumbing/object/merge_base.go
+2
-2
plumbing/object/merge_base.go
···
4
4
"fmt"
5
5
"sort"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/storer"
9
9
)
10
10
11
11
// errIsReachable is thrown when first commit is an ancestor of the second
+3
-3
plumbing/object/merge_base_test.go
+3
-3
plumbing/object/merge_base_test.go
···
4
4
"fmt"
5
5
"sort"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
9
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/cache"
9
+
"github.com/go-git/go-git/v5/storage/filesystem"
10
10
11
11
. "gopkg.in/check.v1"
12
12
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
+2
-2
plumbing/object/object.go
+2
-2
plumbing/object/object.go
···
10
10
"strconv"
11
11
"time"
12
12
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/storer"
15
15
)
16
16
17
17
// ErrUnsupportedObject trigger when a non-supported object is being decoded.
+5
-5
plumbing/object/object_test.go
+5
-5
plumbing/object/object_test.go
···
6
6
"testing"
7
7
"time"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
13
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/cache"
11
+
"github.com/go-git/go-git/v5/plumbing/filemode"
12
+
"github.com/go-git/go-git/v5/plumbing/storer"
13
+
"github.com/go-git/go-git/v5/storage/filesystem"
14
14
15
15
. "gopkg.in/check.v1"
16
16
"gopkg.in/src-d/go-git-fixtures.v3"
+4
-4
plumbing/object/patch.go
+4
-4
plumbing/object/patch.go
···
9
9
"math"
10
10
"strings"
11
11
12
-
"gopkg.in/src-d/go-git.v4/plumbing"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
14
-
fdiff "gopkg.in/src-d/go-git.v4/plumbing/format/diff"
15
-
"gopkg.in/src-d/go-git.v4/utils/diff"
12
+
"github.com/go-git/go-git/v5/plumbing"
13
+
"github.com/go-git/go-git/v5/plumbing/filemode"
14
+
fdiff "github.com/go-git/go-git/v5/plumbing/format/diff"
15
+
"github.com/go-git/go-git/v5/utils/diff"
16
16
17
17
dmp "github.com/sergi/go-diff/diffmatchpatch"
18
18
)
+3
-3
plumbing/object/patch_test.go
+3
-3
plumbing/object/patch_test.go
···
3
3
import (
4
4
. "gopkg.in/check.v1"
5
5
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/storage/filesystem"
9
9
)
10
10
11
11
type PatchSuite struct {
+3
-3
plumbing/object/tag.go
+3
-3
plumbing/object/tag.go
···
10
10
11
11
"golang.org/x/crypto/openpgp"
12
12
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
15
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/storer"
15
+
"github.com/go-git/go-git/v5/utils/ioutil"
16
16
)
17
17
18
18
// Tag represents an annotated tag object. It points to a single git object of
+4
-4
plumbing/object/tag_test.go
+4
-4
plumbing/object/tag_test.go
···
8
8
"time"
9
9
10
10
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
13
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
14
-
"gopkg.in/src-d/go-git.v4/storage/memory"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/cache"
13
+
"github.com/go-git/go-git/v5/storage/filesystem"
14
+
"github.com/go-git/go-git/v5/storage/memory"
15
15
16
16
. "gopkg.in/check.v1"
17
17
)
+4
-4
plumbing/object/tree.go
+4
-4
plumbing/object/tree.go
···
10
10
"path/filepath"
11
11
"strings"
12
12
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
16
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/filemode"
15
+
"github.com/go-git/go-git/v5/plumbing/storer"
16
+
"github.com/go-git/go-git/v5/utils/ioutil"
17
17
)
18
18
19
19
const (
+5
-5
plumbing/object/tree_test.go
+5
-5
plumbing/object/tree_test.go
···
4
4
"errors"
5
5
"io"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
11
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/cache"
9
+
"github.com/go-git/go-git/v5/plumbing/filemode"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
+
"github.com/go-git/go-git/v5/storage/filesystem"
12
12
13
13
. "gopkg.in/check.v1"
14
14
"gopkg.in/src-d/go-git-fixtures.v3"
+3
-3
plumbing/object/treenoder.go
+3
-3
plumbing/object/treenoder.go
···
3
3
import (
4
4
"io"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/filemode"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
9
9
)
10
10
11
11
// A treenoder is a helper type that wraps git trees into merkletrie
+4
-4
plumbing/protocol/packp/advrefs.go
+4
-4
plumbing/protocol/packp/advrefs.go
···
5
5
"sort"
6
6
"strings"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
11
-
"gopkg.in/src-d/go-git.v4/storage/memory"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
+
"github.com/go-git/go-git/v5/storage/memory"
12
12
)
13
13
14
14
// AdvRefs values represent the information transmitted on an
+2
-2
plumbing/protocol/packp/advrefs_decode.go
+2
-2
plumbing/protocol/packp/advrefs_decode.go
···
7
7
"fmt"
8
8
"io"
9
9
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
12
12
)
13
13
14
14
// Decode reads the next advertised-refs message form its input and
+3
-3
plumbing/protocol/packp/advrefs_decode_test.go
+3
-3
plumbing/protocol/packp/advrefs_decode_test.go
···
5
5
"io"
6
6
"strings"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
10
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
11
11
12
12
. "gopkg.in/check.v1"
13
13
)
+3
-3
plumbing/protocol/packp/advrefs_encode.go
+3
-3
plumbing/protocol/packp/advrefs_encode.go
···
6
6
"io"
7
7
"sort"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
11
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
12
12
)
13
13
14
14
// Encode writes the AdvRefs encoding to a writer.
+3
-3
plumbing/protocol/packp/advrefs_encode_test.go
+3
-3
plumbing/protocol/packp/advrefs_encode_test.go
···
4
4
"bytes"
5
5
"strings"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
9
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
10
10
11
11
. "gopkg.in/check.v1"
12
12
)
+3
-3
plumbing/protocol/packp/advrefs_test.go
+3
-3
plumbing/protocol/packp/advrefs_test.go
···
6
6
"io"
7
7
"strings"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
11
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
12
12
13
13
. "gopkg.in/check.v1"
14
14
)
+1
-1
plumbing/protocol/packp/common_test.go
+1
-1
plumbing/protocol/packp/common_test.go
+2
-2
plumbing/protocol/packp/report_status.go
+2
-2
plumbing/protocol/packp/report_status.go
+2
-2
plumbing/protocol/packp/report_status_test.go
+2
-2
plumbing/protocol/packp/report_status_test.go
+2
-2
plumbing/protocol/packp/shallowupd.go
+2
-2
plumbing/protocol/packp/shallowupd.go
+1
-1
plumbing/protocol/packp/shallowupd_test.go
+1
-1
plumbing/protocol/packp/shallowupd_test.go
+1
-1
plumbing/protocol/packp/sideband/demux.go
+1
-1
plumbing/protocol/packp/sideband/demux.go
+1
-1
plumbing/protocol/packp/sideband/demux_test.go
+1
-1
plumbing/protocol/packp/sideband/demux_test.go
+1
-1
plumbing/protocol/packp/sideband/muxer.go
+1
-1
plumbing/protocol/packp/sideband/muxer.go
+2
-2
plumbing/protocol/packp/srvresp.go
+2
-2
plumbing/protocol/packp/srvresp.go
+1
-1
plumbing/protocol/packp/srvresp_test.go
+1
-1
plumbing/protocol/packp/srvresp_test.go
+2
-2
plumbing/protocol/packp/ulreq.go
+2
-2
plumbing/protocol/packp/ulreq.go
···
4
4
"fmt"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
9
9
)
10
10
11
11
// UploadRequest values represent the information transmitted on a
+2
-2
plumbing/protocol/packp/ulreq_decode.go
+2
-2
plumbing/protocol/packp/ulreq_decode.go
···
8
8
"strconv"
9
9
"time"
10
10
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
13
13
)
14
14
15
15
// Decode reads the next upload-request form its input and
+3
-3
plumbing/protocol/packp/ulreq_decode_test.go
+3
-3
plumbing/protocol/packp/ulreq_decode_test.go
···
6
6
"sort"
7
7
"time"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
11
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
12
12
13
13
. "gopkg.in/check.v1"
14
14
)
+2
-2
plumbing/protocol/packp/ulreq_encode.go
+2
-2
plumbing/protocol/packp/ulreq_encode.go
···
6
6
"io"
7
7
"time"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
11
11
)
12
12
13
13
// Encode writes the UlReq encoding of u to the stream.
+3
-3
plumbing/protocol/packp/ulreq_encode_test.go
+3
-3
plumbing/protocol/packp/ulreq_encode_test.go
···
4
4
"bytes"
5
5
"time"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
9
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
10
10
11
11
. "gopkg.in/check.v1"
12
12
)
+3
-3
plumbing/protocol/packp/ulreq_test.go
+3
-3
plumbing/protocol/packp/ulreq_test.go
···
6
6
"strings"
7
7
"time"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
11
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
12
12
13
13
. "gopkg.in/check.v1"
14
14
)
+3
-3
plumbing/protocol/packp/updreq.go
+3
-3
plumbing/protocol/packp/updreq.go
···
4
4
"errors"
5
5
"io"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
9
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband"
10
10
)
11
11
12
12
var (
+2
-2
plumbing/protocol/packp/updreq_decode.go
+2
-2
plumbing/protocol/packp/updreq_decode.go
+2
-2
plumbing/protocol/packp/updreq_decode_test.go
+2
-2
plumbing/protocol/packp/updreq_decode_test.go
+3
-3
plumbing/protocol/packp/updreq_encode.go
+3
-3
plumbing/protocol/packp/updreq_encode.go
···
4
4
"fmt"
5
5
"io"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
9
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
10
10
)
11
11
12
12
var (
+2
-2
plumbing/protocol/packp/updreq_encode_test.go
+2
-2
plumbing/protocol/packp/updreq_encode_test.go
+1
-1
plumbing/protocol/packp/updreq_test.go
+1
-1
plumbing/protocol/packp/updreq_test.go
+3
-3
plumbing/protocol/packp/uppackreq.go
+3
-3
plumbing/protocol/packp/uppackreq.go
···
5
5
"fmt"
6
6
"io"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
10
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
11
11
)
12
12
13
13
// UploadPackRequest represents a upload-pack request.
+2
-2
plumbing/protocol/packp/uppackreq_test.go
+2
-2
plumbing/protocol/packp/uppackreq_test.go
+2
-2
plumbing/protocol/packp/uppackresp.go
+2
-2
plumbing/protocol/packp/uppackresp.go
···
6
6
7
7
"bufio"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
10
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
9
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
10
+
"github.com/go-git/go-git/v5/utils/ioutil"
11
11
)
12
12
13
13
// ErrUploadPackResponseNotDecoded is returned if Read is called without
+2
-2
plumbing/protocol/packp/uppackresp_test.go
+2
-2
plumbing/protocol/packp/uppackresp_test.go
···
4
4
"bytes"
5
5
"io/ioutil"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
7
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
8
8
9
9
. "gopkg.in/check.v1"
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
11
)
12
12
13
13
type UploadPackResponseSuite struct{}
+4
-4
plumbing/revlist/revlist.go
+4
-4
plumbing/revlist/revlist.go
···
6
6
"fmt"
7
7
"io"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/filemode"
11
+
"github.com/go-git/go-git/v5/plumbing/object"
12
+
"github.com/go-git/go-git/v5/plumbing/storer"
13
13
)
14
14
15
15
// Objects applies a complementary set. It gets all the hashes from all
+5
-5
plumbing/revlist/revlist_test.go
+5
-5
plumbing/revlist/revlist_test.go
···
3
3
import (
4
4
"testing"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
10
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
+
"github.com/go-git/go-git/v5/plumbing/storer"
10
+
"github.com/go-git/go-git/v5/storage/filesystem"
11
11
12
12
. "gopkg.in/check.v1"
13
13
"gopkg.in/src-d/go-git-fixtures.v3"
+1
-1
plumbing/storer/index.go
+1
-1
plumbing/storer/index.go
+1
-1
plumbing/storer/object.go
+1
-1
plumbing/storer/object.go
+1
-1
plumbing/storer/object_test.go
+1
-1
plumbing/storer/object_test.go
+1
-1
plumbing/storer/reference.go
+1
-1
plumbing/storer/reference.go
+1
-1
plumbing/storer/reference_test.go
+1
-1
plumbing/storer/reference_test.go
+1
-1
plumbing/storer/shallow.go
+1
-1
plumbing/storer/shallow.go
+5
-5
plumbing/transport/client/client.go
+5
-5
plumbing/transport/client/client.go
···
5
5
import (
6
6
"fmt"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/file"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/git"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/ssh"
8
+
"github.com/go-git/go-git/v5/plumbing/transport"
9
+
"github.com/go-git/go-git/v5/plumbing/transport/file"
10
+
"github.com/go-git/go-git/v5/plumbing/transport/git"
11
+
"github.com/go-git/go-git/v5/plumbing/transport/http"
12
+
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
13
13
)
14
14
15
15
// Protocols are the protocols supported by default.
+1
-1
plumbing/transport/client/client_test.go
+1
-1
plumbing/transport/client/client_test.go
+2
-2
plumbing/transport/client/example_test.go
+2
-2
plumbing/transport/client/example_test.go
···
4
4
"crypto/tls"
5
5
"net/http"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/client"
8
-
githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http"
7
+
"github.com/go-git/go-git/v5/plumbing/transport/client"
8
+
githttp "github.com/go-git/go-git/v5/plumbing/transport/http"
9
9
)
10
10
11
11
func ExampleInstallProtocol() {
+4
-4
plumbing/transport/common.go
+4
-4
plumbing/transport/common.go
···
22
22
"strconv"
23
23
"strings"
24
24
25
-
giturl "gopkg.in/src-d/go-git.v4/internal/url"
26
-
"gopkg.in/src-d/go-git.v4/plumbing"
27
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
28
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
25
+
giturl "github.com/go-git/go-git/v5/internal/url"
26
+
"github.com/go-git/go-git/v5/plumbing"
27
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
28
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
29
29
)
30
30
31
31
var (
+1
-1
plumbing/transport/common_test.go
+1
-1
plumbing/transport/common_test.go
+2
-2
plumbing/transport/file/client.go
+2
-2
plumbing/transport/file/client.go
···
10
10
"path/filepath"
11
11
"strings"
12
12
13
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common"
13
+
"github.com/go-git/go-git/v5/plumbing/transport"
14
+
"github.com/go-git/go-git/v5/plumbing/transport/internal/common"
15
15
)
16
16
17
17
// DefaultClient is the default local client.
+1
-1
plumbing/transport/file/client_test.go
+1
-1
plumbing/transport/file/client_test.go
+1
-1
plumbing/transport/file/receive_pack_test.go
+1
-1
plumbing/transport/file/receive_pack_test.go
+4
-4
plumbing/transport/file/server.go
+4
-4
plumbing/transport/file/server.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/server"
10
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
7
+
"github.com/go-git/go-git/v5/plumbing/transport"
8
+
"github.com/go-git/go-git/v5/plumbing/transport/internal/common"
9
+
"github.com/go-git/go-git/v5/plumbing/transport/server"
10
+
"github.com/go-git/go-git/v5/utils/ioutil"
11
11
)
12
12
13
13
// ServeUploadPack serves a git-upload-pack request using standard output, input
+2
-2
plumbing/transport/file/upload_pack_test.go
+2
-2
plumbing/transport/file/upload_pack_test.go
···
4
4
"os"
5
5
"path/filepath"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/test"
7
+
"github.com/go-git/go-git/v5/plumbing/transport"
8
+
"github.com/go-git/go-git/v5/plumbing/transport/test"
9
9
10
10
. "gopkg.in/check.v1"
11
11
"gopkg.in/src-d/go-git-fixtures.v3"
+4
-4
plumbing/transport/git/common.go
+4
-4
plumbing/transport/git/common.go
···
6
6
"io"
7
7
"net"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common"
12
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
9
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
10
+
"github.com/go-git/go-git/v5/plumbing/transport"
11
+
"github.com/go-git/go-git/v5/plumbing/transport/internal/common"
12
+
"github.com/go-git/go-git/v5/utils/ioutil"
13
13
)
14
14
15
15
// DefaultClient is the default git client.
+1
-1
plumbing/transport/git/common_test.go
+1
-1
plumbing/transport/git/common_test.go
+1
-1
plumbing/transport/git/receive_pack_test.go
+1
-1
plumbing/transport/git/receive_pack_test.go
+1
-1
plumbing/transport/git/upload_pack_test.go
+1
-1
plumbing/transport/git/upload_pack_test.go
+4
-4
plumbing/transport/http/common.go
+4
-4
plumbing/transport/http/common.go
···
9
9
"strconv"
10
10
"strings"
11
11
12
-
"gopkg.in/src-d/go-git.v4/plumbing"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
15
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
12
+
"github.com/go-git/go-git/v5/plumbing"
13
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
14
+
"github.com/go-git/go-git/v5/plumbing/transport"
15
+
"github.com/go-git/go-git/v5/utils/ioutil"
16
16
)
17
17
18
18
// it requires a bytes.Buffer, because we need to know the length
+1
-1
plumbing/transport/http/common_test.go
+1
-1
plumbing/transport/http/common_test.go
+6
-6
plumbing/transport/http/receive_pack.go
+6
-6
plumbing/transport/http/receive_pack.go
···
7
7
"io"
8
8
"net/http"
9
9
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
15
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
12
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
13
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband"
14
+
"github.com/go-git/go-git/v5/plumbing/transport"
15
+
"github.com/go-git/go-git/v5/utils/ioutil"
16
16
)
17
17
18
18
type rpSession struct {
+1
-1
plumbing/transport/http/receive_pack_test.go
+1
-1
plumbing/transport/http/receive_pack_test.go
+6
-6
plumbing/transport/http/upload_pack.go
+6
-6
plumbing/transport/http/upload_pack.go
···
7
7
"io"
8
8
"net/http"
9
9
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common"
15
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
12
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
13
+
"github.com/go-git/go-git/v5/plumbing/transport"
14
+
"github.com/go-git/go-git/v5/plumbing/transport/internal/common"
15
+
"github.com/go-git/go-git/v5/utils/ioutil"
16
16
)
17
17
18
18
type upSession struct {
+4
-4
plumbing/transport/http/upload_pack_test.go
+4
-4
plumbing/transport/http/upload_pack_test.go
···
6
6
"os"
7
7
"path/filepath"
8
8
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/test"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
11
+
"github.com/go-git/go-git/v5/plumbing/transport"
12
+
"github.com/go-git/go-git/v5/plumbing/transport/test"
13
13
14
14
. "gopkg.in/check.v1"
15
15
"gopkg.in/src-d/go-git-fixtures.v3"
+6
-6
plumbing/transport/internal/common/common.go
+6
-6
plumbing/transport/internal/common/common.go
···
15
15
"strings"
16
16
"time"
17
17
18
-
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
19
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
20
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
21
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
22
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
23
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
18
+
"github.com/go-git/go-git/v5/plumbing/format/pktline"
19
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
20
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
21
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband"
22
+
"github.com/go-git/go-git/v5/plumbing/transport"
23
+
"github.com/go-git/go-git/v5/utils/ioutil"
24
24
)
25
25
26
26
const (
+3
-3
plumbing/transport/internal/common/server.go
+3
-3
plumbing/transport/internal/common/server.go
···
5
5
"fmt"
6
6
"io"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
10
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
8
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
9
+
"github.com/go-git/go-git/v5/plumbing/transport"
10
+
"github.com/go-git/go-git/v5/utils/ioutil"
11
11
)
12
12
13
13
// ServerCommand is used for a single server command execution.
+6
-6
plumbing/transport/server/loader.go
+6
-6
plumbing/transport/server/loader.go
···
1
1
package server
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
5
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
6
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
7
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
4
+
"github.com/go-git/go-git/v5/plumbing/cache"
5
+
"github.com/go-git/go-git/v5/plumbing/storer"
6
+
"github.com/go-git/go-git/v5/plumbing/transport"
7
+
"github.com/go-git/go-git/v5/storage/filesystem"
8
8
9
-
"gopkg.in/src-d/go-billy.v4"
10
-
"gopkg.in/src-d/go-billy.v4/osfs"
9
+
"github.com/go-git/go-billy/v5"
10
+
"github.com/go-git/go-billy/v5/osfs"
11
11
)
12
12
13
13
// DefaultLoader is a filesystem loader ignoring host and resolving paths to /.
+2
-2
plumbing/transport/server/loader_test.go
+2
-2
plumbing/transport/server/loader_test.go
+1
-1
plumbing/transport/server/receive_pack_test.go
+1
-1
plumbing/transport/server/receive_pack_test.go
+8
-8
plumbing/transport/server/server.go
+8
-8
plumbing/transport/server/server.go
···
8
8
"fmt"
9
9
"io"
10
10
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/revlist"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
18
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
13
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
14
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
15
+
"github.com/go-git/go-git/v5/plumbing/revlist"
16
+
"github.com/go-git/go-git/v5/plumbing/storer"
17
+
"github.com/go-git/go-git/v5/plumbing/transport"
18
+
"github.com/go-git/go-git/v5/utils/ioutil"
19
19
)
20
20
21
21
var DefaultServer = NewServer(DefaultLoader)
+7
-7
plumbing/transport/server/server_test.go
+7
-7
plumbing/transport/server/server_test.go
···
3
3
import (
4
4
"testing"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/client"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/server"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/test"
11
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
12
-
"gopkg.in/src-d/go-git.v4/storage/memory"
6
+
"github.com/go-git/go-git/v5/plumbing/cache"
7
+
"github.com/go-git/go-git/v5/plumbing/transport"
8
+
"github.com/go-git/go-git/v5/plumbing/transport/client"
9
+
"github.com/go-git/go-git/v5/plumbing/transport/server"
10
+
"github.com/go-git/go-git/v5/plumbing/transport/test"
11
+
"github.com/go-git/go-git/v5/storage/filesystem"
12
+
"github.com/go-git/go-git/v5/storage/memory"
13
13
14
14
. "gopkg.in/check.v1"
15
15
"gopkg.in/src-d/go-git-fixtures.v3"
+1
-1
plumbing/transport/server/upload_pack_test.go
+1
-1
plumbing/transport/server/upload_pack_test.go
+1
-1
plumbing/transport/ssh/auth_method.go
+1
-1
plumbing/transport/ssh/auth_method.go
+2
-2
plumbing/transport/ssh/common.go
+2
-2
plumbing/transport/ssh/common.go
···
7
7
"reflect"
8
8
"strconv"
9
9
10
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common"
10
+
"github.com/go-git/go-git/v5/plumbing/transport"
11
+
"github.com/go-git/go-git/v5/plumbing/transport/internal/common"
12
12
13
13
"github.com/kevinburke/ssh_config"
14
14
"golang.org/x/crypto/ssh"
+1
-1
plumbing/transport/ssh/common_test.go
+1
-1
plumbing/transport/ssh/common_test.go
+2
-2
plumbing/transport/ssh/upload_pack_test.go
+2
-2
plumbing/transport/ssh/upload_pack_test.go
···
12
12
"strings"
13
13
"sync"
14
14
15
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/test"
15
+
"github.com/go-git/go-git/v5/plumbing/transport"
16
+
"github.com/go-git/go-git/v5/plumbing/transport/test"
17
17
18
18
"github.com/gliderlabs/ssh"
19
19
stdssh "golang.org/x/crypto/ssh"
+6
-6
plumbing/transport/test/receive_pack.go
+6
-6
plumbing/transport/test/receive_pack.go
···
11
11
"os"
12
12
"path/filepath"
13
13
14
-
"gopkg.in/src-d/go-git.v4/plumbing"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
18
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
19
-
"gopkg.in/src-d/go-git.v4/storage/memory"
14
+
"github.com/go-git/go-git/v5/plumbing"
15
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
16
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
17
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
18
+
"github.com/go-git/go-git/v5/plumbing/transport"
19
+
"github.com/go-git/go-git/v5/storage/memory"
20
20
21
21
. "gopkg.in/check.v1"
22
22
"gopkg.in/src-d/go-git-fixtures.v3"
+6
-6
plumbing/transport/test/upload_pack.go
+6
-6
plumbing/transport/test/upload_pack.go
···
10
10
"io/ioutil"
11
11
"time"
12
12
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
17
-
"gopkg.in/src-d/go-git.v4/storage/memory"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
15
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
16
+
"github.com/go-git/go-git/v5/plumbing/transport"
17
+
"github.com/go-git/go-git/v5/storage/memory"
18
18
19
19
. "gopkg.in/check.v1"
20
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
20
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
21
21
)
22
22
23
23
type UploadPackSuite struct {
+2
-2
prune.go
+2
-2
prune.go
+5
-5
prune_test.go
+5
-5
prune_test.go
···
3
3
import (
4
4
"time"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
9
-
"gopkg.in/src-d/go-git.v4/storage"
10
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
6
+
"github.com/go-git/go-git/v5/plumbing"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/storer"
9
+
"github.com/go-git/go-git/v5/storage"
10
+
"github.com/go-git/go-git/v5/storage/filesystem"
11
11
12
12
. "gopkg.in/check.v1"
13
13
"gopkg.in/src-d/go-git-fixtures.v3"
+3
-3
references.go
+3
-3
references.go
···
4
4
"io"
5
5
"sort"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
9
-
"gopkg.in/src-d/go-git.v4/utils/diff"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
+
"github.com/go-git/go-git/v5/utils/diff"
10
10
11
11
"github.com/sergi/go-diff/diffmatchpatch"
12
12
)
+3
-3
references_test.go
+3
-3
references_test.go
···
4
4
"bytes"
5
5
"fmt"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
9
-
"gopkg.in/src-d/go-git.v4/storage/memory"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/plumbing/object"
9
+
"github.com/go-git/go-git/v5/storage/memory"
10
10
11
11
. "gopkg.in/check.v1"
12
12
"gopkg.in/src-d/go-git-fixtures.v3"
+17
-17
remote.go
+17
-17
remote.go
···
6
6
"fmt"
7
7
"io"
8
8
9
-
"gopkg.in/src-d/go-billy.v4/osfs"
10
-
"gopkg.in/src-d/go-git.v4/config"
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
18
-
"gopkg.in/src-d/go-git.v4/plumbing/revlist"
19
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
20
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
21
-
"gopkg.in/src-d/go-git.v4/plumbing/transport/client"
22
-
"gopkg.in/src-d/go-git.v4/storage"
23
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
24
-
"gopkg.in/src-d/go-git.v4/storage/memory"
25
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
9
+
"github.com/go-git/go-billy/v5/osfs"
10
+
"github.com/go-git/go-git/v5/config"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/cache"
13
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
14
+
"github.com/go-git/go-git/v5/plumbing/object"
15
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
16
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
17
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband"
18
+
"github.com/go-git/go-git/v5/plumbing/revlist"
19
+
"github.com/go-git/go-git/v5/plumbing/storer"
20
+
"github.com/go-git/go-git/v5/plumbing/transport"
21
+
"github.com/go-git/go-git/v5/plumbing/transport/client"
22
+
"github.com/go-git/go-git/v5/storage"
23
+
"github.com/go-git/go-git/v5/storage/filesystem"
24
+
"github.com/go-git/go-git/v5/storage/memory"
25
+
"github.com/go-git/go-git/v5/utils/ioutil"
26
26
)
27
27
28
28
var (
+10
-10
remote_test.go
+10
-10
remote_test.go
···
9
9
"runtime"
10
10
"time"
11
11
12
-
"gopkg.in/src-d/go-git.v4/config"
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
18
-
"gopkg.in/src-d/go-git.v4/storage"
19
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
20
-
"gopkg.in/src-d/go-git.v4/storage/memory"
12
+
"github.com/go-git/go-git/v5/config"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/plumbing/cache"
15
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
16
+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
17
+
"github.com/go-git/go-git/v5/plumbing/storer"
18
+
"github.com/go-git/go-git/v5/storage"
19
+
"github.com/go-git/go-git/v5/storage/filesystem"
20
+
"github.com/go-git/go-git/v5/storage/memory"
21
21
22
+
"github.com/go-git/go-billy/v5/osfs"
22
23
. "gopkg.in/check.v1"
23
-
"gopkg.in/src-d/go-billy.v4/osfs"
24
24
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
25
25
)
26
26
+12
-12
repository.go
+12
-12
repository.go
···
14
14
"time"
15
15
16
16
"golang.org/x/crypto/openpgp"
17
-
"gopkg.in/src-d/go-git.v4/config"
18
-
"gopkg.in/src-d/go-git.v4/internal/revision"
19
-
"gopkg.in/src-d/go-git.v4/plumbing"
20
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
21
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
22
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
23
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
24
-
"gopkg.in/src-d/go-git.v4/storage"
25
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
26
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
17
+
"github.com/go-git/go-git/v5/config"
18
+
"github.com/go-git/go-git/v5/internal/revision"
19
+
"github.com/go-git/go-git/v5/plumbing"
20
+
"github.com/go-git/go-git/v5/plumbing/cache"
21
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
22
+
"github.com/go-git/go-git/v5/plumbing/object"
23
+
"github.com/go-git/go-git/v5/plumbing/storer"
24
+
"github.com/go-git/go-git/v5/storage"
25
+
"github.com/go-git/go-git/v5/storage/filesystem"
26
+
"github.com/go-git/go-git/v5/utils/ioutil"
27
27
28
-
"gopkg.in/src-d/go-billy.v4"
29
-
"gopkg.in/src-d/go-billy.v4/osfs"
28
+
"github.com/go-git/go-billy/v5"
29
+
"github.com/go-git/go-billy/v5/osfs"
30
30
)
31
31
32
32
// GitDirName this is a special folder where all the git stuff is.
+15
-15
repository_test.go
+15
-15
repository_test.go
···
21
21
"golang.org/x/crypto/openpgp/armor"
22
22
openpgperr "golang.org/x/crypto/openpgp/errors"
23
23
24
-
"gopkg.in/src-d/go-git.v4/config"
25
-
"gopkg.in/src-d/go-git.v4/plumbing"
26
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
27
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
28
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
29
-
"gopkg.in/src-d/go-git.v4/plumbing/transport"
30
-
"gopkg.in/src-d/go-git.v4/storage"
31
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
32
-
"gopkg.in/src-d/go-git.v4/storage/memory"
24
+
"github.com/go-git/go-git/v5/config"
25
+
"github.com/go-git/go-git/v5/plumbing"
26
+
"github.com/go-git/go-git/v5/plumbing/cache"
27
+
"github.com/go-git/go-git/v5/plumbing/object"
28
+
"github.com/go-git/go-git/v5/plumbing/storer"
29
+
"github.com/go-git/go-git/v5/plumbing/transport"
30
+
"github.com/go-git/go-git/v5/storage"
31
+
"github.com/go-git/go-git/v5/storage/filesystem"
32
+
"github.com/go-git/go-git/v5/storage/memory"
33
33
34
+
"github.com/go-git/go-billy/v5/memfs"
35
+
"github.com/go-git/go-billy/v5/osfs"
36
+
"github.com/go-git/go-billy/v5/util"
34
37
. "gopkg.in/check.v1"
35
-
"gopkg.in/src-d/go-billy.v4/memfs"
36
-
"gopkg.in/src-d/go-billy.v4/osfs"
37
-
"gopkg.in/src-d/go-billy.v4/util"
38
38
)
39
39
40
40
type RepositorySuite struct {
···
2680
2680
c.Assert(err, IsNil)
2681
2681
2682
2682
datas := map[string]string{
2683
-
"efs/heads/master~": "reference not found",
2684
-
"HEAD^3": `Revision invalid : "3" found must be 0, 1 or 2 after "^"`,
2685
-
"HEAD^{/whatever}": `No commit message match regexp : "whatever"`,
2683
+
"efs/heads/master~": "reference not found",
2684
+
"HEAD^3": `Revision invalid : "3" found must be 0, 1 or 2 after "^"`,
2685
+
"HEAD^{/whatever}": `No commit message match regexp : "whatever"`,
2686
2686
"4e1243bd22c66e76c2ba9eddc1f91394e57f9f83": "reference not found",
2687
2687
}
2688
2688
+3
-3
storage/filesystem/config.go
+3
-3
storage/filesystem/config.go
···
4
4
stdioutil "io/ioutil"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4/config"
8
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
9
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
7
+
"github.com/go-git/go-git/v5/config"
8
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
9
+
"github.com/go-git/go-git/v5/utils/ioutil"
10
10
)
11
11
12
12
type ConfigStorage struct {
+3
-3
storage/filesystem/config_test.go
+3
-3
storage/filesystem/config_test.go
···
4
4
"io/ioutil"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4/config"
8
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
7
+
"github.com/go-git/go-git/v5/config"
8
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
9
9
10
+
"github.com/go-git/go-billy/v5/osfs"
10
11
. "gopkg.in/check.v1"
11
-
"gopkg.in/src-d/go-billy.v4/osfs"
12
12
"gopkg.in/src-d/go-git-fixtures.v3"
13
13
)
14
14
+1
-1
storage/filesystem/deltaobject.go
+1
-1
storage/filesystem/deltaobject.go
+5
-5
storage/filesystem/dotgit/dotgit.go
+5
-5
storage/filesystem/dotgit/dotgit.go
···
12
12
"strings"
13
13
"time"
14
14
15
-
"gopkg.in/src-d/go-billy.v4/osfs"
16
-
"gopkg.in/src-d/go-git.v4/plumbing"
17
-
"gopkg.in/src-d/go-git.v4/storage"
18
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
15
+
"github.com/go-git/go-billy/v5/osfs"
16
+
"github.com/go-git/go-git/v5/plumbing"
17
+
"github.com/go-git/go-git/v5/storage"
18
+
"github.com/go-git/go-git/v5/utils/ioutil"
19
19
20
-
"gopkg.in/src-d/go-billy.v4"
20
+
"github.com/go-git/go-billy/v5"
21
21
)
22
22
23
23
const (
+2
-2
storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go
+2
-2
storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go
+3
-3
storage/filesystem/dotgit/dotgit_setref.go
+3
-3
storage/filesystem/dotgit/dotgit_setref.go
···
4
4
"fmt"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/utils/ioutil"
9
9
10
-
"gopkg.in/src-d/go-billy.v4"
10
+
"github.com/go-git/go-billy/v5"
11
11
)
12
12
13
13
func (d *DotGit) setRef(fileName, content string, old *plumbing.Reference) (err error) {
+3
-3
storage/filesystem/dotgit/dotgit_test.go
+3
-3
storage/filesystem/dotgit/dotgit_test.go
···
9
9
"strings"
10
10
"testing"
11
11
12
-
"gopkg.in/src-d/go-billy.v4"
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
+
"github.com/go-git/go-billy/v5"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
14
15
+
"github.com/go-git/go-billy/v5/osfs"
15
16
. "gopkg.in/check.v1"
16
-
"gopkg.in/src-d/go-billy.v4/osfs"
17
17
"gopkg.in/src-d/go-git-fixtures.v3"
18
18
)
19
19
+5
-5
storage/filesystem/dotgit/writers.go
+5
-5
storage/filesystem/dotgit/writers.go
···
5
5
"io"
6
6
"sync/atomic"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/objfile"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
10
+
"github.com/go-git/go-git/v5/plumbing/format/objfile"
11
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
12
12
13
-
"gopkg.in/src-d/go-billy.v4"
13
+
"github.com/go-git/go-billy/v5"
14
14
)
15
15
16
16
// PackWriter is a io.Writer that generates the packfile index simultaneously,
+4
-4
storage/filesystem/dotgit/writers_test.go
+4
-4
storage/filesystem/dotgit/writers_test.go
···
8
8
"os"
9
9
"strconv"
10
10
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
13
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
14
14
15
+
"github.com/go-git/go-billy/v5/osfs"
15
16
. "gopkg.in/check.v1"
16
-
"gopkg.in/src-d/go-billy.v4/osfs"
17
17
"gopkg.in/src-d/go-git-fixtures.v3"
18
18
)
19
19
+3
-3
storage/filesystem/index.go
+3
-3
storage/filesystem/index.go
···
4
4
"bufio"
5
5
"os"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
8
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
9
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
7
+
"github.com/go-git/go-git/v5/plumbing/format/index"
8
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
9
+
"github.com/go-git/go-git/v5/utils/ioutil"
10
10
)
11
11
12
12
type IndexStorage struct {
+3
-3
storage/filesystem/module.go
+3
-3
storage/filesystem/module.go
···
1
1
package filesystem
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
5
-
"gopkg.in/src-d/go-git.v4/storage"
6
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
4
+
"github.com/go-git/go-git/v5/plumbing/cache"
5
+
"github.com/go-git/go-git/v5/storage"
6
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
7
7
)
8
8
9
9
type ModuleStorage struct {
+9
-9
storage/filesystem/object.go
+9
-9
storage/filesystem/object.go
···
5
5
"os"
6
6
"time"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/format/objfile"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
14
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
15
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/cache"
10
+
"github.com/go-git/go-git/v5/plumbing/format/idxfile"
11
+
"github.com/go-git/go-git/v5/plumbing/format/objfile"
12
+
"github.com/go-git/go-git/v5/plumbing/format/packfile"
13
+
"github.com/go-git/go-git/v5/plumbing/storer"
14
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
15
+
"github.com/go-git/go-git/v5/utils/ioutil"
16
16
17
-
"gopkg.in/src-d/go-billy.v4"
17
+
"github.com/go-git/go-billy/v5"
18
18
)
19
19
20
20
type ObjectStorage struct {
+3
-3
storage/filesystem/object_test.go
+3
-3
storage/filesystem/object_test.go
···
8
8
"path/filepath"
9
9
"testing"
10
10
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
13
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/cache"
13
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
14
14
15
15
. "gopkg.in/check.v1"
16
16
"gopkg.in/src-d/go-git-fixtures.v3"
+3
-3
storage/filesystem/reference.go
+3
-3
storage/filesystem/reference.go
···
1
1
package filesystem
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing"
5
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
6
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
4
+
"github.com/go-git/go-git/v5/plumbing"
5
+
"github.com/go-git/go-git/v5/plumbing/storer"
6
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
7
7
)
8
8
9
9
type ReferenceStorage struct {
+3
-3
storage/filesystem/shallow.go
+3
-3
storage/filesystem/shallow.go
···
4
4
"bufio"
5
5
"fmt"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing"
8
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
9
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
7
+
"github.com/go-git/go-git/v5/plumbing"
8
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
9
+
"github.com/go-git/go-git/v5/utils/ioutil"
10
10
)
11
11
12
12
// ShallowStorage where the shallow commits are stored, an internal to
+3
-3
storage/filesystem/storage.go
+3
-3
storage/filesystem/storage.go
···
2
2
package filesystem
3
3
4
4
import (
5
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
6
-
"gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit"
5
+
"github.com/go-git/go-git/v5/plumbing/cache"
6
+
"github.com/go-git/go-git/v5/storage/filesystem/dotgit"
7
7
8
-
"gopkg.in/src-d/go-billy.v4"
8
+
"github.com/go-git/go-billy/v5"
9
9
)
10
10
11
11
// Storage is an implementation of git.Storer that stores data on disk in the
+5
-5
storage/filesystem/storage_test.go
+5
-5
storage/filesystem/storage_test.go
···
4
4
"io/ioutil"
5
5
"testing"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
8
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
9
-
"gopkg.in/src-d/go-git.v4/storage/test"
7
+
"github.com/go-git/go-git/v5/plumbing/cache"
8
+
"github.com/go-git/go-git/v5/plumbing/storer"
9
+
"github.com/go-git/go-git/v5/storage/test"
10
10
11
+
"github.com/go-git/go-billy/v5/memfs"
12
+
"github.com/go-git/go-billy/v5/osfs"
11
13
. "gopkg.in/check.v1"
12
-
"gopkg.in/src-d/go-billy.v4/memfs"
13
-
"gopkg.in/src-d/go-billy.v4/osfs"
14
14
)
15
15
16
16
func Test(t *testing.T) { TestingT(t) }
+5
-5
storage/memory/storage.go
+5
-5
storage/memory/storage.go
···
5
5
"fmt"
6
6
"time"
7
7
8
-
"gopkg.in/src-d/go-git.v4/config"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
12
-
"gopkg.in/src-d/go-git.v4/storage"
8
+
"github.com/go-git/go-git/v5/config"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/index"
11
+
"github.com/go-git/go-git/v5/plumbing/storer"
12
+
"github.com/go-git/go-git/v5/storage"
13
13
)
14
14
15
15
var ErrUnsupportedObjectType = fmt.Errorf("unsupported object type")
+1
-1
storage/memory/storage_test.go
+1
-1
storage/memory/storage_test.go
+3
-3
storage/storer.go
+3
-3
storage/storer.go
···
3
3
import (
4
4
"errors"
5
5
6
-
"gopkg.in/src-d/go-git.v4/config"
7
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
6
+
"github.com/go-git/go-git/v5/config"
7
+
"github.com/go-git/go-git/v5/plumbing/storer"
8
8
)
9
9
10
10
var ErrReferenceHasChanged = errors.New("reference has changed concurrently")
11
11
12
12
// Storer is a generic storage of objects, references and any information
13
-
// related to a particular repository. The package gopkg.in/src-d/go-git.v4/storage
13
+
// related to a particular repository. The package github.com/go-git/go-git/v5/storage
14
14
// contains two implementation a filesystem base implementation (such as `.git`)
15
15
// and a memory implementations being ephemeral
16
16
type Storer interface {
+5
-5
storage/test/storage_suite.go
+5
-5
storage/test/storage_suite.go
···
7
7
"io"
8
8
"io/ioutil"
9
9
10
-
"gopkg.in/src-d/go-git.v4/config"
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
14
-
"gopkg.in/src-d/go-git.v4/storage"
10
+
"github.com/go-git/go-git/v5/config"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/format/index"
13
+
"github.com/go-git/go-git/v5/plumbing/storer"
14
+
"github.com/go-git/go-git/v5/storage"
15
15
16
16
. "gopkg.in/check.v1"
17
17
"gopkg.in/src-d/go-git-fixtures.v3"
+1
-1
storage/transactional/config.go
+1
-1
storage/transactional/config.go
+2
-2
storage/transactional/config_test.go
+2
-2
storage/transactional/config_test.go
+2
-2
storage/transactional/index.go
+2
-2
storage/transactional/index.go
···
1
1
package transactional
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
5
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
4
+
"github.com/go-git/go-git/v5/plumbing/format/index"
5
+
"github.com/go-git/go-git/v5/plumbing/storer"
6
6
)
7
7
8
8
// IndexStorage implements the storer.IndexStorage for the transactional package.
+2
-2
storage/transactional/index_test.go
+2
-2
storage/transactional/index_test.go
+2
-2
storage/transactional/object.go
+2
-2
storage/transactional/object.go
···
1
1
package transactional
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing"
5
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
4
+
"github.com/go-git/go-git/v5/plumbing"
5
+
"github.com/go-git/go-git/v5/plumbing/storer"
6
6
)
7
7
8
8
// ObjectStorage implements the storer.EncodedObjectStorer for the transactional package.
+2
-2
storage/transactional/object_test.go
+2
-2
storage/transactional/object_test.go
+3
-3
storage/transactional/reference.go
+3
-3
storage/transactional/reference.go
···
1
1
package transactional
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing"
5
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
6
-
"gopkg.in/src-d/go-git.v4/storage"
4
+
"github.com/go-git/go-git/v5/plumbing"
5
+
"github.com/go-git/go-git/v5/plumbing/storer"
6
+
"github.com/go-git/go-git/v5/storage"
7
7
)
8
8
9
9
// ReferenceStorage implements the storer.ReferenceStorage for the transactional package.
+2
-2
storage/transactional/reference_test.go
+2
-2
storage/transactional/reference_test.go
+2
-2
storage/transactional/shallow.go
+2
-2
storage/transactional/shallow.go
···
1
1
package transactional
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/plumbing"
5
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
4
+
"github.com/go-git/go-git/v5/plumbing"
5
+
"github.com/go-git/go-git/v5/plumbing/storer"
6
6
)
7
7
8
8
// ShallowStorage implements the storer.ShallowStorer for the transactional package.
+2
-2
storage/transactional/shallow_test.go
+2
-2
storage/transactional/shallow_test.go
+2
-2
storage/transactional/storage.go
+2
-2
storage/transactional/storage.go
···
3
3
import (
4
4
"io"
5
5
6
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
7
-
"gopkg.in/src-d/go-git.v4/storage"
6
+
"github.com/go-git/go-git/v5/plumbing/storer"
7
+
"github.com/go-git/go-git/v5/storage"
8
8
)
9
9
10
10
// Storage is a transactional implementation of git.Storer, it demux the write
+8
-8
storage/transactional/storage_test.go
+8
-8
storage/transactional/storage_test.go
···
3
3
import (
4
4
"testing"
5
5
6
+
"github.com/go-git/go-billy/v5/memfs"
6
7
. "gopkg.in/check.v1"
7
-
"gopkg.in/src-d/go-billy.v4/memfs"
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
11
-
"gopkg.in/src-d/go-git.v4/storage"
12
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
13
-
"gopkg.in/src-d/go-git.v4/storage/memory"
14
-
"gopkg.in/src-d/go-git.v4/storage/test"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/cache"
10
+
"github.com/go-git/go-git/v5/plumbing/storer"
11
+
"github.com/go-git/go-git/v5/storage"
12
+
"github.com/go-git/go-git/v5/storage/filesystem"
13
+
"github.com/go-git/go-git/v5/storage/memory"
14
+
"github.com/go-git/go-git/v5/storage/test"
15
15
)
16
16
17
17
func Test(t *testing.T) { TestingT(t) }
+4
-4
submodule.go
+4
-4
submodule.go
···
6
6
"errors"
7
7
"fmt"
8
8
9
-
"gopkg.in/src-d/go-billy.v4"
10
-
"gopkg.in/src-d/go-git.v4/config"
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
9
+
"github.com/go-git/go-billy/v5"
10
+
"github.com/go-git/go-git/v5/config"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/format/index"
13
13
)
14
14
15
15
var (
+1
-1
submodule_test.go
+1
-1
submodule_test.go
+1
-1
utils/binary/read.go
+1
-1
utils/binary/read.go
+1
-1
utils/binary/read_test.go
+1
-1
utils/binary/read_test.go
+1
-1
utils/diff/diff_ext_test.go
+1
-1
utils/diff/diff_ext_test.go
+1
-1
utils/merkletrie/change.go
+1
-1
utils/merkletrie/change.go
+3
-3
utils/merkletrie/change_test.go
+3
-3
utils/merkletrie/change_test.go
···
1
1
package merkletrie_test
2
2
3
3
import (
4
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
5
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/fsnoder"
6
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
4
+
"github.com/go-git/go-git/v5/utils/merkletrie"
5
+
"github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder"
6
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
7
7
8
8
. "gopkg.in/check.v1"
9
9
)
+1
-1
utils/merkletrie/difftree.go
+1
-1
utils/merkletrie/difftree.go
+2
-2
utils/merkletrie/difftree_test.go
+2
-2
utils/merkletrie/difftree_test.go
···
10
10
"testing"
11
11
"unicode"
12
12
13
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
14
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/fsnoder"
13
+
"github.com/go-git/go-git/v5/utils/merkletrie"
14
+
"github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder"
15
15
16
16
. "gopkg.in/check.v1"
17
17
)
+1
-1
utils/merkletrie/doubleiter.go
+1
-1
utils/merkletrie/doubleiter.go
+4
-4
utils/merkletrie/filesystem/node.go
+4
-4
utils/merkletrie/filesystem/node.go
···
5
5
"os"
6
6
"path"
7
7
8
-
"gopkg.in/src-d/go-git.v4/plumbing"
9
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
10
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
8
+
"github.com/go-git/go-git/v5/plumbing"
9
+
"github.com/go-git/go-git/v5/plumbing/filemode"
10
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
11
11
12
-
"gopkg.in/src-d/go-billy.v4"
12
+
"github.com/go-git/go-billy/v5"
13
13
)
14
14
15
15
var ignore = map[string]bool{
+5
-5
utils/merkletrie/filesystem/node_test.go
+5
-5
utils/merkletrie/filesystem/node_test.go
···
7
7
"path"
8
8
"testing"
9
9
10
+
"github.com/go-git/go-billy/v5"
11
+
"github.com/go-git/go-billy/v5/memfs"
10
12
. "gopkg.in/check.v1"
11
-
"gopkg.in/src-d/go-billy.v4"
12
-
"gopkg.in/src-d/go-billy.v4/memfs"
13
-
"gopkg.in/src-d/go-git.v4/plumbing"
14
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
15
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
13
+
"github.com/go-git/go-git/v5/plumbing"
14
+
"github.com/go-git/go-git/v5/utils/merkletrie"
15
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
16
16
)
17
17
18
18
func Test(t *testing.T) { TestingT(t) }
+2
-2
utils/merkletrie/index/node.go
+2
-2
utils/merkletrie/index/node.go
···
4
4
"path"
5
5
"strings"
6
6
7
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
7
+
"github.com/go-git/go-git/v5/plumbing/format/index"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
9
9
)
10
10
11
11
// The node represents a index.Entry or a directory inferred from the path
+4
-4
utils/merkletrie/index/node_test.go
+4
-4
utils/merkletrie/index/node_test.go
···
6
6
"testing"
7
7
8
8
. "gopkg.in/check.v1"
9
-
"gopkg.in/src-d/go-git.v4/plumbing"
10
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
11
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
12
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
9
+
"github.com/go-git/go-git/v5/plumbing"
10
+
"github.com/go-git/go-git/v5/plumbing/format/index"
11
+
"github.com/go-git/go-git/v5/utils/merkletrie"
12
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
13
13
)
14
14
15
15
func Test(t *testing.T) { TestingT(t) }
+1
-1
utils/merkletrie/internal/frame/frame.go
+1
-1
utils/merkletrie/internal/frame/frame.go
+2
-2
utils/merkletrie/internal/frame/frame_test.go
+2
-2
utils/merkletrie/internal/frame/frame_test.go
···
4
4
"fmt"
5
5
"testing"
6
6
7
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/fsnoder"
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
7
+
"github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
9
9
10
10
. "gopkg.in/check.v1"
11
11
)
+1
-1
utils/merkletrie/internal/fsnoder/dir.go
+1
-1
utils/merkletrie/internal/fsnoder/dir.go
+1
-1
utils/merkletrie/internal/fsnoder/dir_test.go
+1
-1
utils/merkletrie/internal/fsnoder/dir_test.go
+1
-1
utils/merkletrie/internal/fsnoder/file.go
+1
-1
utils/merkletrie/internal/fsnoder/file.go
+1
-1
utils/merkletrie/internal/fsnoder/file_test.go
+1
-1
utils/merkletrie/internal/fsnoder/file_test.go
+1
-1
utils/merkletrie/internal/fsnoder/new.go
+1
-1
utils/merkletrie/internal/fsnoder/new.go
+1
-1
utils/merkletrie/internal/fsnoder/new_test.go
+1
-1
utils/merkletrie/internal/fsnoder/new_test.go
+2
-2
utils/merkletrie/iter.go
+2
-2
utils/merkletrie/iter.go
···
4
4
"fmt"
5
5
"io"
6
6
7
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/frame"
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
7
+
"github.com/go-git/go-git/v5/utils/merkletrie/internal/frame"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
9
9
)
10
10
11
11
// Iter is an iterator for merkletries (only the trie part of the
+3
-3
utils/merkletrie/iter_test.go
+3
-3
utils/merkletrie/iter_test.go
···
5
5
"io"
6
6
"strings"
7
7
8
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
9
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/fsnoder"
10
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
8
+
"github.com/go-git/go-git/v5/utils/merkletrie"
9
+
"github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder"
10
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
11
11
12
12
. "gopkg.in/check.v1"
13
13
)
+11
-11
worktree.go
+11
-11
worktree.go
···
11
11
"strings"
12
12
"sync"
13
13
14
-
"gopkg.in/src-d/go-git.v4/config"
15
-
"gopkg.in/src-d/go-git.v4/plumbing"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/format/gitignore"
18
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
19
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
20
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
21
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
22
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
14
+
"github.com/go-git/go-git/v5/config"
15
+
"github.com/go-git/go-git/v5/plumbing"
16
+
"github.com/go-git/go-git/v5/plumbing/filemode"
17
+
"github.com/go-git/go-git/v5/plumbing/format/gitignore"
18
+
"github.com/go-git/go-git/v5/plumbing/format/index"
19
+
"github.com/go-git/go-git/v5/plumbing/object"
20
+
"github.com/go-git/go-git/v5/plumbing/storer"
21
+
"github.com/go-git/go-git/v5/utils/ioutil"
22
+
"github.com/go-git/go-git/v5/utils/merkletrie"
23
23
24
-
"gopkg.in/src-d/go-billy.v4"
25
-
"gopkg.in/src-d/go-billy.v4/util"
24
+
"github.com/go-git/go-billy/v5"
25
+
"github.com/go-git/go-billy/v5/util"
26
26
)
27
27
28
28
var (
+1
-1
worktree_bsd.go
+1
-1
worktree_bsd.go
+6
-6
worktree_commit.go
+6
-6
worktree_commit.go
···
7
7
"strings"
8
8
9
9
"golang.org/x/crypto/openpgp"
10
-
"gopkg.in/src-d/go-git.v4/plumbing"
11
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
14
-
"gopkg.in/src-d/go-git.v4/storage"
10
+
"github.com/go-git/go-git/v5/plumbing"
11
+
"github.com/go-git/go-git/v5/plumbing/filemode"
12
+
"github.com/go-git/go-git/v5/plumbing/format/index"
13
+
"github.com/go-git/go-git/v5/plumbing/object"
14
+
"github.com/go-git/go-git/v5/storage"
15
15
16
-
"gopkg.in/src-d/go-billy.v4"
16
+
"github.com/go-git/go-billy/v5"
17
17
)
18
18
19
19
// Commit stores the current contents of the index in a new commit along with
+9
-9
worktree_commit_test.go
+9
-9
worktree_commit_test.go
···
8
8
"strings"
9
9
"time"
10
10
11
-
"gopkg.in/src-d/go-git.v4/plumbing"
12
-
"gopkg.in/src-d/go-git.v4/plumbing/cache"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/storer"
15
-
"gopkg.in/src-d/go-git.v4/storage/filesystem"
16
-
"gopkg.in/src-d/go-git.v4/storage/memory"
11
+
"github.com/go-git/go-git/v5/plumbing"
12
+
"github.com/go-git/go-git/v5/plumbing/cache"
13
+
"github.com/go-git/go-git/v5/plumbing/object"
14
+
"github.com/go-git/go-git/v5/plumbing/storer"
15
+
"github.com/go-git/go-git/v5/storage/filesystem"
16
+
"github.com/go-git/go-git/v5/storage/memory"
17
17
18
+
"github.com/go-git/go-billy/v5/memfs"
19
+
"github.com/go-git/go-billy/v5/osfs"
20
+
"github.com/go-git/go-billy/v5/util"
18
21
"golang.org/x/crypto/openpgp"
19
22
"golang.org/x/crypto/openpgp/armor"
20
23
"golang.org/x/crypto/openpgp/errors"
21
24
. "gopkg.in/check.v1"
22
-
"gopkg.in/src-d/go-billy.v4/memfs"
23
-
"gopkg.in/src-d/go-billy.v4/osfs"
24
-
"gopkg.in/src-d/go-billy.v4/util"
25
25
)
26
26
27
27
func (s *WorktreeSuite) TestCommitInvalidOptions(c *C) {
+1
-1
worktree_linux.go
+1
-1
worktree_linux.go
+1
-1
worktree_plan9.go
+1
-1
worktree_plan9.go
+11
-11
worktree_status.go
+11
-11
worktree_status.go
···
8
8
"path"
9
9
"path/filepath"
10
10
11
-
"gopkg.in/src-d/go-billy.v4/util"
12
-
"gopkg.in/src-d/go-git.v4/plumbing"
13
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
14
-
"gopkg.in/src-d/go-git.v4/plumbing/format/gitignore"
15
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
16
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
17
-
"gopkg.in/src-d/go-git.v4/utils/ioutil"
18
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
19
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/filesystem"
20
-
mindex "gopkg.in/src-d/go-git.v4/utils/merkletrie/index"
21
-
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
11
+
"github.com/go-git/go-billy/v5/util"
12
+
"github.com/go-git/go-git/v5/plumbing"
13
+
"github.com/go-git/go-git/v5/plumbing/filemode"
14
+
"github.com/go-git/go-git/v5/plumbing/format/gitignore"
15
+
"github.com/go-git/go-git/v5/plumbing/format/index"
16
+
"github.com/go-git/go-git/v5/plumbing/object"
17
+
"github.com/go-git/go-git/v5/utils/ioutil"
18
+
"github.com/go-git/go-git/v5/utils/merkletrie"
19
+
"github.com/go-git/go-git/v5/utils/merkletrie/filesystem"
20
+
mindex "github.com/go-git/go-git/v5/utils/merkletrie/index"
21
+
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
22
22
)
23
23
24
24
var (
+10
-10
worktree_test.go
+10
-10
worktree_test.go
···
12
12
"testing"
13
13
"time"
14
14
15
-
"gopkg.in/src-d/go-git.v4/config"
16
-
"gopkg.in/src-d/go-git.v4/plumbing"
17
-
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
18
-
"gopkg.in/src-d/go-git.v4/plumbing/format/gitignore"
19
-
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
20
-
"gopkg.in/src-d/go-git.v4/plumbing/object"
21
-
"gopkg.in/src-d/go-git.v4/storage/memory"
15
+
"github.com/go-git/go-git/v5/config"
16
+
"github.com/go-git/go-git/v5/plumbing"
17
+
"github.com/go-git/go-git/v5/plumbing/filemode"
18
+
"github.com/go-git/go-git/v5/plumbing/format/gitignore"
19
+
"github.com/go-git/go-git/v5/plumbing/format/index"
20
+
"github.com/go-git/go-git/v5/plumbing/object"
21
+
"github.com/go-git/go-git/v5/storage/memory"
22
22
23
+
"github.com/go-git/go-billy/v5/memfs"
24
+
"github.com/go-git/go-billy/v5/osfs"
25
+
"github.com/go-git/go-billy/v5/util"
23
26
"golang.org/x/text/unicode/norm"
24
27
. "gopkg.in/check.v1"
25
-
"gopkg.in/src-d/go-billy.v4/memfs"
26
-
"gopkg.in/src-d/go-billy.v4/osfs"
27
-
"gopkg.in/src-d/go-billy.v4/util"
28
28
"gopkg.in/src-d/go-git-fixtures.v3"
29
29
)
30
30
+1
-1
worktree_unix_other.go
+1
-1
worktree_unix_other.go