From 249c4137f4f34992c9bb6a60954e30a27994add7 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 15 Dec 2016 13:45:52 +0100 Subject: storage: shallow storage (#180) * storage: shallow storage * changes * changes --- plumbing/storer/shallow.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plumbing/storer/shallow.go (limited to 'plumbing') 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) +} -- cgit