git

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTag

func CreateTag(repo *Repository, name, message string) error

func FindTags

func FindTags(repo *Repository, reg *regexp.Regexp) ([]string, error)

func PushToOrigin added in v0.4.1

func PushToOrigin(repo *Repository, auth AuthMethod) error

Types

type AuthMethod

type AuthMethod = transport.AuthMethod

type BasicAuth

type BasicAuth = http.BasicAuth

type Commit

type Commit = object.Commit

func ListAllCommits

func ListAllCommits(repo *Repository) ([]*Commit, error)

func ListCommitsFromTagToHead

func ListCommitsFromTagToHead(repo *Repository, tag string, pathPrefix string) ([]*Commit, error)

type Hash

type Hash = plumbing.Hash

func CreateCommit

func CreateCommit(repo *Repository, message string) (Hash, error)

type Repository

type Repository = git.Repository

func OpenRepository

func OpenRepository(path string) (*Repository, error)

Jump to

Keyboard shortcuts

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