branchmeta

package
v0.0.0-...-ca61a64 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name   string
	Commit string
}

func GetDefault

func GetDefault(ctx context.Context, repoDir string) (res Branch, _ error)

type BranchWithCommitTime

type BranchWithCommitTime struct {
	Name                string
	Commit              string
	CommitCommitterTime time.Time
}

func Get

func Get(ctx context.Context, opts Opts) (res []BranchWithCommitTime, _ error)

type Opts

type Opts struct {
	Logger         logger.Logger
	RepoDir        string
	UseOrigin      bool
	IncludeDefault bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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