mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 10:04:27 +00:00
08bf443016
* Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
11 lines
315 B
Go
11 lines
315 B
Go
package storer
|
|
|
|
import "gopkg.in/src-d/go-git.v4/plumbing"
|
|
|
|
// ShallowStorer is a 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)
|
|
}
|