git

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 6 Imported by: 0

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
}

Commit stores all git-commit information

type Repository

type Repository interface {
	Log(fromRev, toRev string) ([]Commit, error)
	Commit(commitMessage string, paths ...string) error
}

Repository is an abstraction for git-repository

func NewRepository

func NewRepository(path string) (Repository, error)

NewRepository return Repository from path

Jump to

Keyboard shortcuts

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