diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-03-07 23:16:17 +0000 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2023-03-08 00:04:25 +0000 |
commit | 99e2f85843878671b028d4d01bd4668676226dd1 (patch) | |
tree | e7b8a2214ac29d9ee6807c48001f493bc158dd88 /options.go | |
parent | 02494219682689ccfae6d4ffed2734509eed02d0 (diff) | |
download | go-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.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 } |