git

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branches

func Branches() []string

Branches get all branches

func BranchesByPattern

func BranchesByPattern(pattern string) []string

BranchesByPattern get branches by pattern

func CommitHash

func CommitHash(branch string) string

CommitHash Get Commit hash of branch

func CommitTimestamp

func CommitTimestamp(hash string) time.Time

CommitTimestamp Get Timestamp of commit

func DeleteBranches

func DeleteBranches(branches []interface{}, force bool, dryRun bool)

DeleteBranches Delete brances

func SetGitExecutable

func SetGitExecutable(gitExecutablePath string)

SetGitExecutable Set executable git path.

func SwitchToDefault

func SwitchToDefault(mainBranch string)

SwitchToDefault Switch to default branch

Types

This section is empty.

Jump to

Keyboard shortcuts

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