git

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Log *logrus.Logger
}

func (*Git) FindGitRepositoryRoot

func (g *Git) FindGitRepositoryRoot() (string, error)

func (*Git) GetAllCommits

func (g *Git) GetAllCommits(chartPath string) ([]GitCommit, error)

func (*Git) GetDiffBetweenCommits

func (g *Git) GetDiffBetweenCommits(start, end, diffPath string) (string, error)

func (*Git) GetFileContent

func (g *Git) GetFileContent(hash, filePath string) (string, error)

type GitCommit

type GitCommit struct {
	Commit   string    `yaml:"commit"`
	Parent   string    `yaml:"parent"`
	Refs     string    `yaml:"refs"`
	Subject  string    `yaml:"subject"`
	Author   GitPerson `yaml:"author"`
	Commiter GitPerson `yaml:"commiter"`
}

type GitPerson

type GitPerson struct {
	Name  string     `yaml:"name"`
	Email string     `yaml:"email"`
	Date  *time.Time `yaml:"date"`
}

Jump to

Keyboard shortcuts

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