git

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Like git module. But wrapper to one place

Index

Constants

This section is empty.

Variables

View Source
var HEAD_Hash plumbing.Hash

Functions

This section is empty.

Types

type Log

type Log struct {
	Hash plumbing.Hash
	Msg  types.CommitOriginalMsg
}

type Repository

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

func NewRepoInWorkDir

func NewRepoInWorkDir(sshPath SshPath) *Repository

func NewRepoTestInMemory

func NewRepoTestInMemory() *Repository

func (*Repository) CreateTag

func (r *Repository) CreateTag(name types.TagName, msg string)

func (*Repository) ForeachLog

func (r *Repository) ForeachLog(From plumbing.Hash, callback func(log Log) ShouldWeStopIteration)

func (*Repository) ForeachTag

func (r *Repository) ForeachTag(callback func(tag Tag) ShouldWeStopIteration)

func (*Repository) GetLatestCommitHash

func (r *Repository) GetLatestCommitHash() plumbing.Hash

func (*Repository) GetLogsFromTag

func (r *Repository) GetLogsFromTag(tagName types.TagName, callback func(log Log) ShouldWeStopIteration)

func (*Repository) HookEnabled

func (r *Repository) HookEnabled(enabled bool)

func (*Repository) PushTag

func (r *Repository) PushTag(name types.TagName)

func (*Repository) TestCommit

func (r *Repository) TestCommit(msg string) plumbing.Hash

func (*Repository) TestCreateTag

func (r *Repository) TestCreateTag(name string, hash plumbing.Hash)

type ShouldWeStopIteration

type ShouldWeStopIteration bool

type SshPath

type SshPath string

type Tag

type Tag struct {
	Hash plumbing.Hash
	Ref  *plumbing.Reference
	Name types.TagName
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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