git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package git allows to interact with Git.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentBranchName

func GetCurrentBranchName(t testing.TestingT) string

GetCurrentBranchName retrieves the current branch name or empty string in case of detached state.

func GetCurrentBranchNameE

func GetCurrentBranchNameE(t testing.TestingT) (string, error)

GetCurrentBranchNameE retrieves the current branch name or empty string in case of detached state.

func GetCurrentGitRef

func GetCurrentGitRef(t testing.TestingT) string

GetCurrentGitRef retrieves current branch name, lightweight (non-annotated) tag or if tag points to the commit exact tag value.

func GetCurrentGitRefE

func GetCurrentGitRefE(t testing.TestingT) (string, error)

GetCurrentGitRefE retrieves current branch name, lightweight (non-annotated) tag or if tag points to the commit exact tag value.

func GetTagE

func GetTagE(t testing.TestingT) (string, error)

GetTagE retrieves lightweight (non-annotated) tag or if tag points to the commit exact tag value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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