Documentation ¶
Overview ¶
Refer to: - https://github.com/src-d/go-git - https://github.com/src-d/go-git/blob/master/_examples/clone/main.go"
Index ¶
- Variables
- type Client
- type GitClientOptFn
- func CloneOptRecursionSubmodulesDepth(resursiveDepth int) GitClientOptFn
- func CloneOptStateReader(reader io.Reader) GitClientOptFn
- func CloneOptsCommitsLimit(limitDepth int) GitClientOptFn
- func CloneOptsReferenceName(refName string) GitClientOptFn
- func CloneOptsSingleBranchOnly(singleBranch bool) GitClientOptFn
- type Interface
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(optFns ...GitClientOptFn) (*Client, error)
type GitClientOptFn ¶
func CloneOptRecursionSubmodulesDepth ¶
func CloneOptRecursionSubmodulesDepth(resursiveDepth int) GitClientOptFn
func CloneOptStateReader ¶
func CloneOptStateReader(reader io.Reader) GitClientOptFn
func CloneOptsCommitsLimit ¶
func CloneOptsCommitsLimit(limitDepth int) GitClientOptFn
Limit commits number
func CloneOptsReferenceName ¶
func CloneOptsReferenceName(refName string) GitClientOptFn
Branch, Tag, commit Hash to clone, default is master/HEAD
func CloneOptsSingleBranchOnly ¶
func CloneOptsSingleBranchOnly(singleBranch bool) GitClientOptFn
If true, only clone single branch
Click to show internal directories.
Click to hide internal directories.