git

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package git contains Git helper functions (https://git-scm.com/)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() template.FuncMap

func Root added in v0.0.4

func Root() (string, error)

Types

type Reference

type Reference struct {
	// contains filtered or unexported fields
}

func Branches added in v0.0.4

func Branches() ([]*Reference, error)

func LocalBranches added in v0.0.4

func LocalBranches() ([]*Reference, error)

func References added in v0.0.4

func References() ([]*Reference, error)

func RemoteBranches added in v0.0.4

func RemoteBranches() ([]*Reference, error)

func (Reference) String

func (r Reference) String() string

type Remote

type Remote struct {
	// contains filtered or unexported fields
}

func Remotes added in v0.0.4

func Remotes() ([]*Remote, error)

func (Remote) String

func (r Remote) String() string

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func Open added in v0.0.4

func Open(segments ...string) (*Repository, error)

func (Repository) Branches

func (r Repository) Branches() ([]*Reference, error)

func (Repository) LocalBranches

func (r Repository) LocalBranches() ([]*Reference, error)

func (Repository) References

func (r Repository) References() ([]*Reference, error)

func (Repository) RemoteBranches

func (r Repository) RemoteBranches() ([]*Reference, error)

func (Repository) Remotes

func (r Repository) Remotes() ([]*Remote, error)

func (Repository) Root

func (r Repository) Root() string

func (Repository) String

func (r Repository) String() string

func (Repository) Tags

func (r Repository) Tags() ([]*Tag, error)

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func Tags added in v0.0.4

func Tags() ([]*Tag, error)

func (Tag) String

func (t Tag) String() string

Jump to

Keyboard shortcuts

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