git

package
v0.0.0-...-4e6bda9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package git provides helper functions for working with git repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeadCommit

func HeadCommit(dir string) (string, error)

HeadCommit returns hash of the HEAD commit of the current branch of git repository in dir.

func ListRecentCommits

func ListRecentCommits(dir, baseCommit string) ([]string, error)

ListRecentCommits returns list of commit titles for the last year starting from baseCommit.

func Poll

func Poll(dir, repo, branch string) (string, error)

Poll checkouts the specified repository/branch in dir. This involves fetching/resetting/cloning as necessary to recover from all possible problems. Returns hash of the HEAD commit in the specified branch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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