aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-04-04 18:46:26 +0200
committerGitHub <noreply@github.com>2018-04-04 18:46:26 +0200
commitc4ace4d53535d00899503bfaedc6e9709e3aff0a (patch)
tree2c27503469c0e5fb5ae6028819d20df673a2ab76 /options.go
parent247cf690745dfd67ccd9f0c07878e6dd85e6c9ed (diff)
parent5e8e011f6537e6822350a16a243db5802d4151e6 (diff)
downloadgo-git-c4ace4d53535d00899503bfaedc6e9709e3aff0a.tar.gz
Merge pull request #784 from mvdan/open-detect
add PlainOpen variant to find .git in parent dirs
Diffstat (limited to 'options.go')
-rw-r--r--options.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/options.go b/options.go
index f0c2fd8..885980e 100644
--- a/options.go
+++ b/options.go
@@ -420,3 +420,14 @@ func (o *GrepOptions) Validate(w *Worktree) error {
return nil
}
+
+// PlainOpenOptions describes how opening a plain repository should be
+// performed.
+type PlainOpenOptions struct {
+ // DetectDotGit defines whether parent directories should be
+ // walked until a .git directory or file is found.
+ DetectDotGit bool
+}
+
+// Validate validates the fields and sets the default values.
+func (o *PlainOpenOptions) Validate() error { return nil }