git

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: GPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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