git

package
Version: v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanRepoUrl

func CleanRepoUrl(repoUrl string) string

Types

type Repository added in v0.0.2

type Repository struct {
	Repo *git.Repository
}

func NewRepository added in v0.0.2

func NewRepository() (Repository, error)

func (Repository) Branch added in v0.0.2

func (r Repository) Branch() (string, error)

func (Repository) Commit added in v0.0.2

func (r Repository) Commit() (string, error)

func (Repository) GitEnv added in v0.0.2

func (r Repository) GitEnv() map[string]string

func (Repository) IsDirty added in v0.0.3

func (r Repository) IsDirty() (bool, error)

func (Repository) ParseURL added in v0.0.3

func (r Repository) ParseURL(remote string) (*url.URL, error)

func (Repository) RepoHostname added in v0.0.3

func (r Repository) RepoHostname(remote string) (string, error)

func (Repository) RepoPath added in v0.0.3

func (r Repository) RepoPath(remote string) (string, error)

func (Repository) RepoUrl added in v0.0.2

func (r Repository) RepoUrl(remoteName string) (string, error)

func (Repository) Tag added in v0.0.2

func (r Repository) Tag() (string, error)

Source Files

Jump to

Keyboard shortcuts

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