diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-04-04 18:46:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 18:46:26 +0200 |
commit | c4ace4d53535d00899503bfaedc6e9709e3aff0a (patch) | |
tree | 2c27503469c0e5fb5ae6028819d20df673a2ab76 /options.go | |
parent | 247cf690745dfd67ccd9f0c07878e6dd85e6c9ed (diff) | |
parent | 5e8e011f6537e6822350a16a243db5802d4151e6 (diff) | |
download | go-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.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 } |