test

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 4 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 {
	Hash    string
	Message string
}

type File

type File struct {
	Name    string
	Content string
}

type Files

type Files []File

type GitHelper

type GitHelper struct {
	// contains filtered or unexported fields
}

func NewGitHelper

func NewGitHelper(dir string) *GitHelper

func (*GitHelper) Add

func (h *GitHelper) Add(name string) error

func (*GitHelper) Commit

func (h *GitHelper) Commit() error

func (*GitHelper) Commits

func (h *GitHelper) Commits() (GitHistory, error)

func (*GitHelper) Head

func (h *GitHelper) Head() (string, error)

func (*GitHelper) Init

func (h *GitHelper) Init() error

func (*GitHelper) InitRepositoryWithFiles

func (h *GitHelper) InitRepositoryWithFiles(f Files) error

func (*GitHelper) IsWorkingTreeClean

func (h *GitHelper) IsWorkingTreeClean() (bool, error)

func (*GitHelper) WithCommits

func (h *GitHelper) WithCommits() error

type GitHistory

type GitHistory []Commit

Jump to

Keyboard shortcuts

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