diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-08-30 18:33:37 +0200 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-08-30 18:33:37 +0200 |
commit | 82945e31dd8bce5fc51d4fd16d696a6d326e5f44 (patch) | |
tree | 0ebee0c8101266230e60edc47a1f3696722173ee /options.go | |
parent | 1e1a7d0623459807d6f1e871492147f971f7540c (diff) | |
download | go-git-82945e31dd8bce5fc51d4fd16d696a6d326e5f44.tar.gz |
git, storer: use a common storer.Options for storer and PlainOpen
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -9,6 +9,7 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband" + "gopkg.in/src-d/go-git.v4/plumbing/storer" "gopkg.in/src-d/go-git.v4/plumbing/transport" ) @@ -428,11 +429,12 @@ func (o *GrepOptions) Validate(w *Worktree) error { // PlainOpenOptions describes how opening a plain repository should be // performed. type PlainOpenOptions struct { + // Storage layer options. + Storage storer.Options + // DetectDotGit defines whether parent directories should be // walked until a .git directory or file is found. DetectDotGit bool - // Static means that the repository won't be modified while open. - Static bool } // Validate validates the fields and sets the default values. |