aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2018-08-30 18:33:37 +0200
committerJavi Fontan <jfontan@gmail.com>2018-08-30 18:33:37 +0200
commit82945e31dd8bce5fc51d4fd16d696a6d326e5f44 (patch)
tree0ebee0c8101266230e60edc47a1f3696722173ee /options.go
parent1e1a7d0623459807d6f1e871492147f971f7540c (diff)
downloadgo-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.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/options.go b/options.go
index 7b55146..f67a454 100644
--- a/options.go
+++ b/options.go
@@ -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.