@@ -14,6 +14,7 @@ import (
1414
1515 "gopkg.in/src-d/go-billy.v4/osfs"
1616 "gopkg.in/src-d/go-git.v4/plumbing"
17+ "gopkg.in/src-d/go-git.v4/plumbing/storer"
1718 "gopkg.in/src-d/go-git.v4/utils/ioutil"
1819
1920 "gopkg.in/src-d/go-billy.v4"
6061// The DotGit type represents a local git repository on disk. This
6162// type is not zero-value-safe, use the New function to initialize it.
6263type DotGit struct {
63- DotGitOptions
64+ storer. Options
6465 fs billy.Filesystem
6566
6667 // incoming object directory information
@@ -73,25 +74,19 @@ type DotGit struct {
7374 packMap map [plumbing.Hash ]struct {}
7475}
7576
76- // DotGitOptions holds configuration options for new DotGit objects.
77- type DotGitOptions struct {
78- // Static means that the filesystem won't be changed while the repo is open.
79- Static bool
80- }
81-
8277// New returns a DotGit value ready to be used. The path argument must
8378// be the absolute path of a git repository directory (e.g.
8479// "/foo/bar/.git").
8580func New (fs billy.Filesystem ) * DotGit {
86- return NewWithOptions (fs , DotGitOptions {})
81+ return NewWithOptions (fs , storer. Options {})
8782}
8883
8984// NewWithOptions creates a new DotGit and sets non default configuration
9085// options. See New for complete help.
91- func NewWithOptions (fs billy.Filesystem , o DotGitOptions ) * DotGit {
86+ func NewWithOptions (fs billy.Filesystem , o storer. Options ) * DotGit {
9287 return & DotGit {
93- DotGitOptions : o ,
94- fs : fs ,
88+ Options : o ,
89+ fs : fs ,
9590 }
9691}
9792
0 commit comments