git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package git simplifies git operations

Index

Constants

This section is empty.

Variables

View Source
var ErrRepositoryAlreadyExists = git.ErrRepositoryAlreadyExists

Functions

func Fetch

func Fetch(local string) (updated bool, err error)

func ParseRemoteRelease

func ParseRemoteRelease(remoteRelease string) (remote, release string, err error)

func Pull

func Pull(local string) (updated bool, err error)

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func Clone

func Clone(remote, local string) (*Repo, error)

func (*Repo) Checkout

func (r *Repo) Checkout(release string) error

func (*Repo) GetCommitTime

func (r *Repo) GetCommitTime(commit string) (time.Time, error)

Jump to

Keyboard shortcuts

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