git

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitFileExt     string = ".git.tar"
	GitFileHomeExt string = ".git.home.tar"
)

Variables

This section is empty.

Functions

func Archive

func Archive(c *hashcache.CheckSumCache, repoPath string, saveDir string) error

Archive will create a git archive from a local path

func GetHomeRepo

func GetHomeRepo(path string) (string, error)

GetHomeRepo will return a 'home' repo

func GetOtherRepos

func GetOtherRepos(path string) ([]string, error)

GetOtherRepos will list other git repos saved

func IsClean added in v0.3.6

func IsClean(repoPath string) (bool, error)

IsClean will report is a repo is clean given a path

func Restore

func Restore(gitRepoFile, dst, repoName, artefactsDir string) error

Restore will extract a git repository to the correct path under the dst directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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