gitops

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gitops provides Git operations via subprocess.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitAndPush

func CommitAndPush(files []string, message, branch string) (string, error)

CommitAndPush stages files, commits, and force-pushes to origin. The branch always represents HEAD + the YAML changes, so force push is the default.

func Configure

func Configure(userName, userEmail, token, repository, serverURL string) error

Configure sets up git with user info and authentication.

func CreateBranch

func CreateBranch(name, base string) error

CreateBranch creates and checks out a new branch from a base. It always starts fresh from origin/<base>, discarding any existing local branch.

func GetDefaultBranch

func GetDefaultBranch() string

GetDefaultBranch returns the default branch name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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