git

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 8 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 GitRoot

func GitRoot() (string, error)

Types

type Reference

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

func GitBranches

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

func GitLocalBranches

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

func GitReferences

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

func GitRemoteBranches

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

func (Reference) String

func (r Reference) String() string

type Remote

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

func GitRemotes

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

func (Remote) String

func (r Remote) String() string

type Repository

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

func GitOpen

func GitOpen(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 GitTags

func GitTags() ([]*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