git

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedFiles

type ChangedFiles struct {
	Added    []string
	Modified []string
	Deleted  []string
	Renamed  map[string]string
}

type Repository

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

func NewRepository

func NewRepository(path string) Repository

func (Repository) ChangedFiles

func (r Repository) ChangedFiles(ctx context.Context, oldCommit string, newCommit string) (ChangedFiles, error)

func (Repository) Contents

func (r Repository) Contents(ctx context.Context, head, path string) ([]byte, error)

func (Repository) GetCommit

func (r Repository) GetCommit(ctx context.Context, ref string) (string, error)

Jump to

Keyboard shortcuts

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