version

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package version implements versions related functions

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the verison of git-repo.
	Version = "undefined"

	// GitVersion is version of git.
	GitVersion = ""
)

Functions

func CompareVersion

func CompareVersion(_left, _right string) int

CompareVersion compares two versions.

func GetGitVersion

func GetGitVersion() string

GetGitVersion gets current installed git version.

func GetVersion

func GetVersion() string

GetVersion returns git-repo version.

func ValidateGitVersion

func ValidateGitVersion()

ValidateGitVersion is used to check installed git version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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