Documentation ¶
Overview ¶
Package git contains Git helper functions (https://git-scm.com/)
Index ¶
- func FuncMap() template.FuncMap
- func Root() (string, error)
- type Reference
- type Remote
- type Repository
- func (r Repository) Branches() ([]*Reference, error)
- func (r Repository) LocalBranches() ([]*Reference, error)
- func (r Repository) References() ([]*Reference, error)
- func (r Repository) RemoteBranches() ([]*Reference, error)
- func (r Repository) Remotes() ([]*Remote, error)
- func (r Repository) Root() string
- func (r Repository) String() string
- func (r Repository) Tags() ([]*Tag, error)
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reference ¶
type Reference struct {
// contains filtered or unexported fields
}
func LocalBranches ¶ added in v0.0.4
func References ¶ added in v0.0.4
func RemoteBranches ¶ added in v0.0.4
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)
Click to show internal directories.
Click to hide internal directories.