Discover Packages
github.com/kubeshop/testkube
pkg
git
package
Version:
v1.5.43
Opens a new window with list of versions in this module.
Published: Oct 3, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Checkout(uri, branch, commit, dir)
CheckoutCommit(uri, path, commit, dir)
PartialCheckout(uri, path, branch, commit, dir)
Types
Source Files
Documentation
Documentation
¶
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
func Checkout(uri, branch, commit, dir string) (outputDir string, err error)
func CheckoutCommit(uri, path, commit, dir string) (err error)
func PartialCheckout(uri, path, branch, commit, dir string) (outputDir string, err error)
Checkout will checkout directory from Git repository
func CheckoutCommit(uri, path, commit, dir string ) (err error )
CheckoutCommit checks out specific commit
func PartialCheckout(uri, path, branch, commit, dir string ) (outputDir string , err error )
PartialCheckout will checkout only given directory from Git repository
Source Files
¶
Click to show internal directories.
Click to hide internal directories.