diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-10-08 12:51:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 12:51:15 +0100 |
commit | 7ef7dc7e3895a01f7149fff6238bd338ca16949d (patch) | |
tree | a1b7b0599f96cbbf41fb06f2f86f38230a4b11c3 /plumbing | |
parent | b2df4aa7072e1e30abe3b97896dc437300b02845 (diff) | |
parent | 479d3e952e75d6e41b71a81cc9a92dec792825ba (diff) | |
download | go-git-7ef7dc7e3895a01f7149fff6238bd338ca16949d.tar.gz |
Merge pull request #860 from enverbisevac/master
add clone --shared feature
Diffstat (limited to 'plumbing')
-rw-r--r-- | plumbing/storer/object.go | 1 | ||||
-rw-r--r-- | plumbing/storer/object_test.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/plumbing/storer/object.go b/plumbing/storer/object.go index d8a9c27..126b374 100644 --- a/plumbing/storer/object.go +++ b/plumbing/storer/object.go @@ -42,6 +42,7 @@ type EncodedObjectStorer interface { HasEncodedObject(plumbing.Hash) error // EncodedObjectSize returns the plaintext size of the encoded object. EncodedObjectSize(plumbing.Hash) (int64, error) + AddAlternate(remote string) error } // DeltaObjectStorer is an EncodedObjectStorer that can return delta diff --git a/plumbing/storer/object_test.go b/plumbing/storer/object_test.go index 30424ff..f2e6a5e 100644 --- a/plumbing/storer/object_test.go +++ b/plumbing/storer/object_test.go @@ -168,3 +168,7 @@ func (o *MockObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (EncodedOb func (o *MockObjectStorage) Begin() Transaction { return nil } + +func (o *MockObjectStorage) AddAlternate(remote string) error { + return nil +} |