Documentation
¶
Index ¶
- func Exec(ctx context.Context, repo, dir string, options ...Option) error
- type ConfigKV
- type Option
- func WithAlsoFilterSubmodules(alsoFilterSubModules bool) Option
- func WithBare(bare bool) Option
- func WithBranch(branch string) Option
- func WithConfig(config []ConfigKV) Option
- func WithDepth(depth int) Option
- func WithDissociate(dissociate bool) Option
- func WithFilter(filter string) Option
- func WithJobs(jobs int) Option
- func WithLocal(local bool) Option
- func WithMirror(mirror bool) Option
- func WithNoCheckout(noCheckout bool) Option
- func WithNoHardLinks(noHardLinks bool) Option
- func WithNoRejectShallow(noRejectShallow bool) Option
- func WithNoRemoteSubmodules(noRemoteSubmodules bool) Option
- func WithNoShallowSubmodules(noShallowSubmodules bool) Option
- func WithNoSingleBranch(noSingleBranch bool) Option
- func WithNoTags(noTags bool) Option
- func WithOrigin(origin string) Option
- func WithProgress(progress bool) Option
- func WithQuiet(quiet bool) Option
- func WithRecurseSubmodules(recurseSubmodules string) Option
- func WithReference(reference string) Option
- func WithReferenceIfAble(referenceIfAble string) Option
- func WithRejectShallow(rejectShallow bool) Option
- func WithRemoteSubmodules(remoteSubmodules bool) Option
- func WithSeparateGitDir(separateGitDir string) Option
- func WithServerOptions(ServerOptions []string) Option
- func WithShallowExclude(shallowExclude []string) Option
- func WithShallowSince(shallowSince string) Option
- func WithShallowSubmodules(shallowSubmodules bool) Option
- func WithShared(shared bool) Option
- func WithSingleBranch(singleBranch bool) Option
- func WithSparse(sparse bool) Option
- func WithTemplate(template string) Option
- func WithUploadPack(uploadPack string) Option
- func WithVerbose(verbose bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(o *execOptions)
func WithAlsoFilterSubmodules ¶
WithAlsoFilterSubmodules sets the --also-filter-submodules flag .For usage Refs :https://git-scm.com/docs/git-clone
func WithConfig ¶
WithConfig sets the --config <key>=<value> flag for every key/value pair
func WithDissociate ¶
WithDissociate sets the --dissociate flag
func WithNoCheckout ¶
WithNoCheckout sets the --no-checkout flag
func WithNoHardLinks ¶
WithNoHardLinks sets the --no-hardlinks flag
func WithNoRejectShallow ¶
WithNoRejectShallow sets the --no-reject-shallow flag
func WithNoRemoteSubmodules ¶
WithNoRemoteSubmodules sets the --no-remote-submodules flag
func WithNoShallowSubmodules ¶
WithNoShallowSubmodules sets the --no-shallow-submodules flag
func WithNoSingleBranch ¶
WithNoSingleBranch sets the --no-single-branch flag
func WithRecurseSubmodules ¶
WithRecurseSubmodules sets the --recurse-modules <pathspec> flag
func WithReference ¶
WithReference sets the --reference <repository> flag
func WithReferenceIfAble ¶
WithReferenceIfAble sets the --reference-if-able <repository> flag
func WithRejectShallow ¶
WithRejectShallow sets the --reject-shallow flag
func WithRemoteSubmodules ¶
WithRemoteSubmodules sets the --remote-submodules flag
func WithSeparateGitDir ¶
WithSeparateGitDir sets the --separate-git-dir <dir> flag
func WithServerOptions ¶
WithServerOptions sets the --server-option <option> flag
func WithShallowExclude ¶
WithShallowExclude sets the --shallow-exclude <revision> flag
func WithShallowSince ¶
WithShallowSince sets the --shallow-since <date> flag
func WithShallowSubmodules ¶
WithShallowSubmodules sets the --shallow-submodules flag
func WithSingleBranch ¶
WithSingleBranch sets the --single-branch flag
func WithTemplate ¶
WithTemplate sets the --template <template-dir> flag
func WithUploadPack ¶
WithUploadPack sets the --upload-pack <dir> flag