git

package
v0.0.0-...-b406f6f Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(path string) *Repository

func (*Repository) CurrentBranch

func (r *Repository) CurrentBranch() (string, error)

func (*Repository) DefaultBranch

func (r *Repository) DefaultBranch() (string, error)

func (*Repository) DiffAgainstDefault

func (r *Repository) DiffAgainstDefault() (string, error)

func (*Repository) GetChangedFiles

func (r *Repository) GetChangedFiles() ([]string, error)

func (*Repository) GetRemoteURL

func (r *Repository) GetRemoteURL() (string, error)

func (*Repository) PushCurrentBranch

func (r *Repository) PushCurrentBranch() error

Jump to

Keyboard shortcuts

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