aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-03-07 23:16:17 +0000
committerPaulo Gomes <pjbgf@linux.com>2023-03-08 00:04:25 +0000
commit99e2f85843878671b028d4d01bd4668676226dd1 (patch)
treee7b8a2214ac29d9ee6807c48001f493bc158dd88 /options.go
parent02494219682689ccfae6d4ffed2734509eed02d0 (diff)
downloadgo-git-99e2f85843878671b028d4d01bd4668676226dd1.tar.gz
config: Add Repository Format Extension
Relates to the SHA256 implementation, defined in #706. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to 'options.go')
-rw-r--r--options.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/options.go b/options.go
index 747d512..738c1ce 100644
--- a/options.go
+++ b/options.go
@@ -10,6 +10,7 @@ import (
"github.com/ProtonMail/go-crypto/openpgp"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing"
+ formatcfg "github.com/go-git/go-git/v5/plumbing/format/config"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband"
"github.com/go-git/go-git/v5/plumbing/transport"
@@ -672,3 +673,10 @@ type PlainOpenOptions struct {
// Validate validates the fields and sets the default values.
func (o *PlainOpenOptions) Validate() error { return nil }
+
+type PlainInitOptions struct {
+ ObjectFormat formatcfg.ObjectFormat
+}
+
+// Validate validates the fields and sets the default values.
+func (o *PlainInitOptions) Validate() error { return nil }