aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-09-15 17:56:55 +0100
committerGitHub <noreply@github.com>2023-09-15 17:56:55 +0100
commitc208b4d513d0e9537f2160cb6d33609c4aa01795 (patch)
treebf76313751ced493b4c298725d6eeaf567c05872 /options.go
parente24e0f714c4ecaf086b5783f099a885e6a2c9a1a (diff)
parent644929ade3ac7c07c370be8065fa2ac6faf081be (diff)
downloadgo-git-c208b4d513d0e9537f2160cb6d33609c4aa01795.tar.gz
Merge pull request #782 from ThinkChaos/feat/plain-init-branch
git: add PlainInitOptions.Bare and allow using InitOptions with PlainInitWithOptions
Diffstat (limited to 'options.go')
-rw-r--r--options.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.go b/options.go
index 757bdc8..c68bf2b 100644
--- a/options.go
+++ b/options.go
@@ -737,6 +737,9 @@ type PlainOpenOptions struct {
func (o *PlainOpenOptions) Validate() error { return nil }
type PlainInitOptions struct {
+ InitOptions
+ // Determines if the repository will have a worktree (non-bare) or not (bare).
+ Bare bool
ObjectFormat formatcfg.ObjectFormat
}