git

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package git contains methods for importing Git repositories.

Index

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

func ImportFromFS(ctx context.Context, dag ipld.DAGService, name, dir string) (cid.Cid, error)

ImportFromFS is a helper to import a git repo from a directory.

func ImportFromURL

func ImportFromURL(ctx context.Context, dag ipld.DAGService, name, url string) (cid.Cid, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL