git

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDirIsFile = errors.New("path is a file")
)

Functions

This section is empty.

Types

type Repository

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

func (*Repository) GetAuthor

func (r *Repository) GetAuthor() *object.Signature

func (*Repository) GetWorktree

func (r *Repository) GetWorktree() (*git.Worktree, error)

func (*Repository) PushChanges

func (r *Repository) PushChanges(msg string, newLines, removedLines []string) error

type RepositoryActions

type RepositoryActions interface {
	PushChanges(msg string, newLines, removedLines []string) error
	GetWorktree() (*git.Worktree, error)
	GetAuthor() *object.Signature
	// contains filtered or unexported methods
}

func NewRepository

func NewRepository(config configuration.Git, repoPath string) (RepositoryActions, error)

Jump to

Keyboard shortcuts

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