git

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	When  time.Time
	Name  string
	Email string
}

type Commit

type Commit struct {
	Author  Author
	Message string
	Hash    plumbing.Hash
}

Commit stores all git-commit information

type Repository

type Repository interface {
	Log(fromRev, toRev string) ([]Commit, error)

	CommitLatestTagByTime() (*Commit, error)
	CommitTagSearchByName(tagName string) (*Commit, error)
	CommitTagSearchByFirstLine(firstLine string) (*Commit, error)
	Commit(commitMessage string, paths ...string) error

	TagLatestByCommitTime() (*object.Tag, error)
}

Repository is an abstraction for git-repository

func NewRepositoryByPath added in v1.3.0

func NewRepositoryByPath(path string) (Repository, error)

NewRepositoryByPath return Repository from path

func NewRepositoryClone added in v1.3.0

func NewRepositoryClone(s storage.Storer, worktree billy.Filesystem, o *goGit.CloneOptions) (Repository, error)

NewRepositoryClone return Repository from git.Repository

Jump to

Keyboard shortcuts

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