git

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT 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 {
	Message string `json:"message"`
	SHA     string `json:"sha"`
}

Commit represents a Git commit object

func FetchCommits

func FetchCommits(path string, afterSha string) ([]Commit, error)

FetchCommits fetches all commits after the specified SHA for the git repository in the path specified

func (Commit) ShortSHA

func (commit Commit) ShortSHA() string

ShortSHA returns the short version of the commit's SHA

Jump to

Keyboard shortcuts

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