git

package
v0.0.0-...-dd64551 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 17 Imported by: 0

README

This directory contains two zip archives which have git repositories inside. It's not straightforward to add a git repository inside a git repository, and this is a workaround.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangesFromGitRepository

func GetChangesFromGitRepository(gitWorkspace, radixConfigBranch, radixConfigFileName, targetCommitHash string, lastCommitHashesForEnvs commithash.EnvCommitHashMap) (map[string][]string, bool, error)

GetChangesFromGitRepository Get changed folders in environments and if radixconfig.yaml was changed

func GetCommitHashAndTags

func GetCommitHashAndTags(env env.Env) (string, string, error)

GetCommitHashAndTags gets target commit hash and tags from GitHub repository

func GetGitCommitHash

func GetGitCommitHash(workspace string, e env.Env) (string, error)

GetGitCommitHash returns commit hash from webhook commit ID that triggered job, if present. If not, returns HEAD of build branch

func GetGitCommitHashFromHead

func GetGitCommitHashFromHead(gitWorkspace string, branchName string) (string, error)

GetGitCommitHashFromHead returns the commit hash for the HEAD of branchName in gitDir

func ResetGitHead

func ResetGitHead(gitWorkspace, commitHashString string) error

ResetGitHead alters HEAD of the git repository on file system to point to commitHashString

Types

This section is empty.

Jump to

Keyboard shortcuts

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