Documentation ¶
Overview ¶
Package git contains methods for importing Git repositories.
Index ¶
- Constants
- func ImportFromFS(ctx context.Context, dag ipld.DAGService, name, dir string) (cid.Cid, error)
- func ImportFromURL(ctx context.Context, dag ipld.DAGService, name, url string) (cid.Cid, error)
- func NewImporter(ctx context.Context, dag ipld.DAGService, repo *git.Repository, name string) *importer
Constants ¶
View Source
const DateFormat = "Mon Jan 02 15:04:05 2006 -0700"
DateFormat is the format to store dates in.
Variables ¶
This section is empty.
Functions ¶
func ImportFromFS ¶
ImportFromFS is a helper to import a git repo from a directory.
func ImportFromURL ¶
ImportFromURL is a helper to import a git repo from a url.
func NewImporter ¶
func NewImporter(ctx context.Context, dag ipld.DAGService, repo *git.Repository, name string) *importer
NewImporter returns an importer for the given repo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.