git

package
v0.0.0-...-9dce326 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangedFiles

func GetChangedFiles(localCiCommitSHA string, originBranchName string) []string

This is a special function only designed for calculating diff between the current pipeline commit, passed by the CI_COMMIT_SHA env var in your gitlab job and a defined other branch (in the gipgee case normally the CI_DEFAULT_BRANCH) It assumes, that the originBranch exists as reference remotes/origin/<originBranch> To ensure this, you need to set the GIT_DEPTH variable to 0 in your .gitlab-ci.yml to avoid a shallow clone which does not contain the other branch

func GetCurrentGitRevisionHex

func GetCurrentGitRevisionHex() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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