helpers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	SHA     string
	Message string
	Date    string
}

func GetCommit

func GetCommit(gitter gitclient.Interface, dir string, SHA string) (*Commit, error)

GetCommit uses "git show" to get information about a specific commit

func GetCommits

func GetCommits(gitter gitclient.Interface, dir string, SHAs []string) ([]*Commit, error)

func GetNewCommits

func GetNewCommits(gitter gitclient.Interface, dir string) ([]*Commit, error)

GetNewCommits returns a list of Commit that have yet to be applied upstream from the current branch

Jump to

Keyboard shortcuts

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