common

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitHistory

func GetGitHistory(path string, tag string) ([]object.Commit, error)

Types

type ChangeSet

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

type GoGitRepository

type GoGitRepository struct {
	RepositoryUrl string
	Auth          *githttp.BasicAuth
	Repository    *git.Repository
	Worktree      *git.Worktree
}

func (*GoGitRepository) CheckoutBranch

func (g *GoGitRepository) CheckoutBranch(target string) error

func (GoGitRepository) CommitFile

func (g GoGitRepository) CommitFile(branchName string, changeset []ChangeSet) error

func (GoGitRepository) CommitManifest

func (g GoGitRepository) CommitManifest(branchName string, content string, versions config.Versions, extraFiles []config.ExtraFileConfig, dryRun bool) error

func (GoGitRepository) ReplaceTaggedLines

func (g GoGitRepository) ReplaceTaggedLines(filenames []string, sourceTag string, replaceTag string) ([]ChangeSet, error)

Jump to

Keyboard shortcuts

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