git

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoChangesError = fmt.Errorf("no changes")

Functions

func CommitAndPush

func CommitAndPush(r *git.Repository, msg string) (string, error)

func CreateTag added in v0.3.17

func CreateTag(repoURL, branch, tag, user string) error

func DeleteBranch added in v0.3.11

func DeleteBranch(repoURL, branch string) error

func GetCurrentBranchFromRepository

func GetCurrentBranchFromRepository(r *git.Repository) (string, error)

func PushToRemote added in v0.3.11

func PushToRemote(remoteURL, remoteBranch, targetURL, targetBranch, msg string) error

func ReadRepoFile

func ReadRepoFile(r *git.Repository, path string) ([]byte, error)

func ShallowClone

func ShallowClone(url string, branch string, depth int) (*git.Repository, error)

func WriteRepoFile

func WriteRepoFile(r *git.Repository, path string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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