git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: AGPL-3.0 Imports: 10 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 OpenRepository

func OpenRepository(path string) (*Repository, error)

func (*Repository) CheckoutBranch

func (r *Repository) CheckoutBranch(branchName string) error

func (*Repository) CreateTag

func (r *Repository) CreateTag(tagName, message string, overwrite bool) error

func (*Repository) CurrentBranch

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

func (*Repository) MergeBranches

func (r *Repository) MergeBranches(sourceBranch, targetBranch, remoteName string) error

func (*Repository) PullBranch

func (r *Repository) PullBranch(branchName, remoteName string) error

func (*Repository) PushBranch

func (r *Repository) PushBranch(branchName, remoteName string) error

func (*Repository) PushTags

func (r *Repository) PushTags(remoteName string) error

func (*Repository) ValidateBranch

func (r *Repository) ValidateBranch(branchName string) error

Jump to

Keyboard shortcuts

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