aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/shallow.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/storer/shallow.go')
-rw-r--r--plumbing/storer/shallow.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/plumbing/storer/shallow.go b/plumbing/storer/shallow.go
new file mode 100644
index 0000000..4366135
--- /dev/null
+++ b/plumbing/storer/shallow.go
@@ -0,0 +1,10 @@
+package storer
+
+import "gopkg.in/src-d/go-git.v4/plumbing"
+
+// ShallowStorer storage of references to shallow commits by hash, meaning that
+// these commits have missing parents because of a shallow fetch.
+type ShallowStorer interface {
+ SetShallow([]plumbing.Hash) error
+ Shallow() ([]plumbing.Hash, error)
+}