git

package
v0.0.0-...-f64704c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(project config.Project) (err error)

Clone performs a check out into a new (project) sub folder underneath WorkingPath If the project configuration specifies sub folders within the project repository, then a sparse checkout is performed for only the specified folders

func GetVersion

func GetVersion(project string) (version string, err error)

GetVersion Reads the Git repository in the working sub directory (project) and returns current commit version

func GetVersionDetails

func GetVersionDetails(project string, version string) (details string, err error)

GetVersionDetails Reads the Git repository in the working sub directory (project) and returns the commit message, author details, and timestamp of the commit

func GetVersionDetailsFile

func GetVersionDetailsFile(file string) (version string, info string, ts string, err error)

GetVersionDetailsFile Reads the file defined by the file parameter and returns the versions and details info.

func GetVersionTime

func GetVersionTime(project string, version string) (timestamp string, err error)

GetVersionTime Reads the Git repository in the working sub directory (project) and returns the committer timestamp for (version) in RFC3339 format which should be compatible with MySQL timestamps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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