git

package
v1.12.5-beta003 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 5 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, authHeader, 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, authHeader, path, commit, dir string) (err error)

CheckoutCommit checks out specific commit

func PartialCheckout

func PartialCheckout(uri, authHeader, 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