aboutsummaryrefslogtreecommitdiffstats
path: root/fixtures/fixtures.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-11-08 23:46:38 +0100
committerGitHub <noreply@github.com>2016-11-08 23:46:38 +0100
commitac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch)
tree223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /fixtures/fixtures.go
parente523701393598f4fa241dd407af9ff8925507a1a (diff)
downloadgo-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'fixtures/fixtures.go')
-rw-r--r--fixtures/fixtures.go72
1 files changed, 36 insertions, 36 deletions
diff --git a/fixtures/fixtures.go b/fixtures/fixtures.go
index 929fb5c..324f2da 100644
--- a/fixtures/fixtures.go
+++ b/fixtures/fixtures.go
@@ -9,7 +9,7 @@ import (
"github.com/alcortesm/tgz"
"gopkg.in/check.v1"
- "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/utils/fs"
osfs "gopkg.in/src-d/go-git.v4/utils/fs/os"
)
@@ -23,98 +23,98 @@ var folders []string
var fixtures = Fixtures{{
Tags: []string{"packfile", "ofs-delta", ".git"},
URL: "https://github.com/git-fixtures/basic.git",
- Head: core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
- PackfileHash: core.NewHash("a3fed42da1e8189a077c0e6846c040dcf73fc9dd"),
- DotGitHash: core.NewHash("0a00a25543e6d732dbf4e8e9fec55c8e65fc4e8d"),
+ Head: plumbing.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
+ PackfileHash: plumbing.NewHash("a3fed42da1e8189a077c0e6846c040dcf73fc9dd"),
+ DotGitHash: plumbing.NewHash("0a00a25543e6d732dbf4e8e9fec55c8e65fc4e8d"),
ObjectsCount: 31,
}, {
Tags: []string{"packfile", "ref-delta", ".git"},
URL: "https://github.com/git-fixtures/basic.git",
- Head: core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
- PackfileHash: core.NewHash("c544593473465e6315ad4182d04d366c4592b829"),
- DotGitHash: core.NewHash("7cbde0ca02f13aedd5ec8b358ca17b1c0bf5ee64"),
+ Head: plumbing.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
+ PackfileHash: plumbing.NewHash("c544593473465e6315ad4182d04d366c4592b829"),
+ DotGitHash: plumbing.NewHash("7cbde0ca02f13aedd5ec8b358ca17b1c0bf5ee64"),
ObjectsCount: 31,
}, {
Tags: []string{"packfile", "ofs-delta", ".git", "single-branch"},
URL: "https://github.com/git-fixtures/basic.git",
- Head: core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
- PackfileHash: core.NewHash("61f0ee9c75af1f9678e6f76ff39fbe372b6f1c45"),
- DotGitHash: core.NewHash("21504f6d2cc2ef0c9d6ebb8802c7b49abae40c1a"),
+ Head: plumbing.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
+ PackfileHash: plumbing.NewHash("61f0ee9c75af1f9678e6f76ff39fbe372b6f1c45"),
+ DotGitHash: plumbing.NewHash("21504f6d2cc2ef0c9d6ebb8802c7b49abae40c1a"),
ObjectsCount: 28,
}, {
Tags: []string{".git", "merge-conflict"},
URL: "https://github.com/git-fixtures/basic.git",
- DotGitHash: core.NewHash("4870d54b5b04e43da8cf99ceec179d9675494af8"),
+ DotGitHash: plumbing.NewHash("4870d54b5b04e43da8cf99ceec179d9675494af8"),
}, {
Tags: []string{".git", "resolve-undo"},
URL: "https://github.com/git-fixtures/basic.git",
- DotGitHash: core.NewHash("df6781fd40b8f4911d70ce71f8387b991615cd6d"),
+ DotGitHash: plumbing.NewHash("df6781fd40b8f4911d70ce71f8387b991615cd6d"),
}, {
Tags: []string{".git", "intent-to-add"},
URL: "https://github.com/git-fixtures/basic.git",
- DotGitHash: core.NewHash("4e7600af05c3356e8b142263e127b76f010facfc"),
+ DotGitHash: plumbing.NewHash("4e7600af05c3356e8b142263e127b76f010facfc"),
}, {
Tags: []string{".git", "index-v4"},
URL: "https://github.com/git-fixtures/basic.git",
- DotGitHash: core.NewHash("935e5ac17c41c309c356639816ea0694a568c484"),
+ DotGitHash: plumbing.NewHash("935e5ac17c41c309c356639816ea0694a568c484"),
}, {
Tags: []string{"packfile", ".git", "unpacked", "multi-packfile"},
URL: "https://github.com/src-d/go-git.git",
- Head: core.NewHash("e8788ad9165781196e917292d6055cba1d78664e"),
- PackfileHash: core.NewHash("3559b3b47e695b33b0913237a4df3357e739831c"),
- DotGitHash: core.NewHash("174be6bd4292c18160542ae6dc6704b877b8a01a"),
+ Head: plumbing.NewHash("e8788ad9165781196e917292d6055cba1d78664e"),
+ PackfileHash: plumbing.NewHash("3559b3b47e695b33b0913237a4df3357e739831c"),
+ DotGitHash: plumbing.NewHash("174be6bd4292c18160542ae6dc6704b877b8a01a"),
ObjectsCount: 2133,
}, {
Tags: []string{"packfile", ".git", "tags"},
URL: "https://github.com/git-fixtures/tags.git",
- Head: core.NewHash("f7b877701fbf855b44c0a9e86f3fdce2c298b07f"),
- DotGitHash: core.NewHash("c0c7c57ab1753ddbd26cc45322299ddd12842794"),
- PackfileHash: core.NewHash("b68617dd8637fe6409d9842825a843a1d9a6e484"),
+ Head: plumbing.NewHash("f7b877701fbf855b44c0a9e86f3fdce2c298b07f"),
+ DotGitHash: plumbing.NewHash("c0c7c57ab1753ddbd26cc45322299ddd12842794"),
+ PackfileHash: plumbing.NewHash("b68617dd8637fe6409d9842825a843a1d9a6e484"),
ObjectsCount: 7,
}, {
Tags: []string{"packfile"},
URL: "https://github.com/spinnaker/spinnaker.git",
- Head: core.NewHash("06ce06d0fc49646c4de733c45b7788aabad98a6f"),
- PackfileHash: core.NewHash("f2e0a8889a746f7600e07d2246a2e29a72f696be"),
+ Head: plumbing.NewHash("06ce06d0fc49646c4de733c45b7788aabad98a6f"),
+ PackfileHash: plumbing.NewHash("f2e0a8889a746f7600e07d2246a2e29a72f696be"),
}, {
Tags: []string{"packfile"},
URL: "https://github.com/jamesob/desk.git",
- Head: core.NewHash("d2313db6e7ca7bac79b819d767b2a1449abb0a5d"),
- PackfileHash: core.NewHash("4ec6344877f494690fc800aceaf2ca0e86786acb"),
+ Head: plumbing.NewHash("d2313db6e7ca7bac79b819d767b2a1449abb0a5d"),
+ PackfileHash: plumbing.NewHash("4ec6344877f494690fc800aceaf2ca0e86786acb"),
}, {
Tags: []string{"packfile", "empty-folder"},
URL: "https://github.com/cpcs499/Final_Pres_P.git",
- Head: core.NewHash("70bade703ce556c2c7391a8065c45c943e8b6bc3"),
- PackfileHash: core.NewHash("29f304662fd64f102d94722cf5bd8802d9a9472c"),
+ Head: plumbing.NewHash("70bade703ce556c2c7391a8065c45c943e8b6bc3"),
+ PackfileHash: plumbing.NewHash("29f304662fd64f102d94722cf5bd8802d9a9472c"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/github/gem-builder.git",
- PackfileHash: core.NewHash("1ea0b3971fd64fdcdf3282bfb58e8cf10095e4e6"),
+ PackfileHash: plumbing.NewHash("1ea0b3971fd64fdcdf3282bfb58e8cf10095e4e6"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/githubtraining/example-branches.git",
- PackfileHash: core.NewHash("bb8ee94710d3fa39379a630f76812c187217b312"),
+ PackfileHash: plumbing.NewHash("bb8ee94710d3fa39379a630f76812c187217b312"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/rumpkernel/rumprun-xen.git",
- PackfileHash: core.NewHash("7861f2632868833a35fe5e4ab94f99638ec5129b"),
+ PackfileHash: plumbing.NewHash("7861f2632868833a35fe5e4ab94f99638ec5129b"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/mcuadros/skeetr.git",
- PackfileHash: core.NewHash("36ef7a2296bfd526020340d27c5e1faa805d8d38"),
+ PackfileHash: plumbing.NewHash("36ef7a2296bfd526020340d27c5e1faa805d8d38"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/dezfowler/LiteMock.git",
- PackfileHash: core.NewHash("0d9b6cfc261785837939aaede5986d7a7c212518"),
+ PackfileHash: plumbing.NewHash("0d9b6cfc261785837939aaede5986d7a7c212518"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/tyba/storable.git",
- PackfileHash: core.NewHash("0d3d824fb5c930e7e7e1f0f399f2976847d31fd3"),
+ PackfileHash: plumbing.NewHash("0d3d824fb5c930e7e7e1f0f399f2976847d31fd3"),
}, {
Tags: []string{"packfile", "diff-tree"},
URL: "https://github.com/toqueteos/ts3.git",
- PackfileHash: core.NewHash("21b33a26eb7ffbd35261149fe5d886b9debab7cb"),
+ PackfileHash: plumbing.NewHash("21b33a26eb7ffbd35261149fe5d886b9debab7cb"),
}}
func All() Fixtures {
@@ -137,9 +137,9 @@ func ByTag(tag string) Fixtures {
type Fixture struct {
URL string
Tags []string
- Head core.Hash
- PackfileHash core.Hash
- DotGitHash core.Hash
+ Head plumbing.Hash
+ PackfileHash plumbing.Hash
+ DotGitHash plumbing.Hash
ObjectsCount int32
}