Documentation
¶
Index ¶
- func Branches(repo *git.Repository) ([]*plumbing.Reference, error)
- func Find(repo *git.Repository, ref *plumbing.Reference, path string) (object.Object, error)
- func HeadOrDefault(repo *git.Repository) (*plumbing.Reference, error)
- func Init(ctx context.Context, ds ipld.DAGService) (ipld.Node, error)
- func Logs(repo *git.Repository, ref *plumbing.Reference, offset, max int) ([]*object.Commit, error)
- func Open(ctx context.Context, ds ipld.DAGService, id string) (*git.Repository, error)
- func Readme(repo *git.Repository, ref *plumbing.Reference) (*object.Blob, error)
- func RefPath(repo *git.Repository, path string) (*plumbing.Reference, string, error)
- func Tags(repo *git.Repository) ([]*plumbing.Reference, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Branches ¶
func Branches(repo *git.Repository) ([]*plumbing.Reference, error)
Branches returns a list of all repository branches.
func HeadOrDefault ¶
func HeadOrDefault(repo *git.Repository) (*plumbing.Reference, error)
HeadOrDefault returns the head or default branch for the repo.
func Open ¶
func Open(ctx context.Context, ds ipld.DAGService, id string) (*git.Repository, error)
Open returns the git repository with the given CID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.