Help us shape the future of Go! Take the 2026 Go Developer Survey

repo

package
v0.14.13 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureOnMaster

func EnsureOnMaster(repoPath string) error

EnsureOnMaster verifies repo is on the master branch, and checks it out if it is not.

func FetchBareRepo added in v0.14.3

func FetchBareRepo(repoPath string, workTree string) error

FetchBareRepo fetches updates for a bare Git repository.

func IsDirty

func IsDirty(repoPath string) (bool, error)

IsDirty verifies the supplied repository path is in a clean state.

func PullLatestCode

func PullLatestCode(repoPath string, branchName string) error

PullLatestCode pulls the latest code for the supplied repository.

func PullRebaseBareRepo added in v0.14.3

func PullRebaseBareRepo(repoPath string, workTree string) error

PullRebaseBareRepo pulls changes with rebase for a bare Git repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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