git

package
v0.0.0-...-c25eef7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package git contains logic for git interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(dir string, file string) (string, error)

Add adds the version file to the git staging area.

func Commit

func Commit(dir string, file string, msg string) (string, error)

Commit commits just the version file with the provided commit message.

func CurrentBranch

func CurrentBranch(dir string) (string, error)

CurrentBranch gets the name of the current branch.

func VersionAtBranch

func VersionAtBranch(dir string, branchName string, versionFile string) (string, error)

VersionAtBranch returns the version file contents from the specific branch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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