git

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

TODO consider checkout by some go-git library to limit external deps in docker container in time writing code "github.com/src-d/go-git" didn't have any filter options "github.com/go-git/go-git/v5" also

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkout added in v0.8.8

func Checkout(uri, branch, commit, dir string) (outputDir string, err error)

Checkout will checkout directory from Git repository

func CheckoutCommit added in v1.3.17

func CheckoutCommit(uri, path, commit, dir string) (err error)

CheckoutCommit checks out specific commit

func PartialCheckout

func PartialCheckout(uri, path, branch, commit, dir string) (outputDir string, err error)

PartialCheckout will checkout only given directory from Git repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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