revision

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommitHash

func GetCommitHash(dir string, ref string) (string, error)

func GetFileContent added in v1.0.36

func GetFileContent(dir string, ref string, file string) (string, error)

git cat-file -p REF:FILE

func GetVersionFiles

func GetVersionFiles(rootDir string) []string

func GetVersionNumber added in v1.0.36

func GetVersionNumber(s string) (int, error)

func IncrementNumber added in v1.0.1

func IncrementNumber(s string) (string, error)

func IndexLinesSequence added in v1.0.36

func IndexLinesSequence(lines []string, seq []string) (lineIndex int, byteIndex int)

func PatchVersionFile

func PatchVersionFile(file string, rev string, autIncrementNumber bool, version int) error

func ReplaceRevision

func ReplaceRevision(s string, revision string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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