Documentation
¶
Index ¶
- Constants
- type Add
- type AddService
- type Checkout
- type CheckoutService
- type Clone
- type CloneService
- type Commit
- type CommitService
- type Example
- type ExampleService
- type Fetch
- type FetchService
- type Init
- type InitService
- type Pull
- type PullService
- type Push
- type PushService
- type Status
- type StatusService
Constants ¶
View Source
const ( GitExample = "git-example" GitAdd = "git-add" GitCheckout = "git-checkout" GitClone = "git-clone" GitCommit = "git-commit" GitConfig = "git-config" GitFetch = "git-fetch" GitInit = "git-init" GitPull = "git-pull" GitPush = "git-push" GitStatus = "git-status" )
定义标准的git命令名称
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddService ¶ added in v0.0.5
type AddService interface {
repositories.Service
Run(task *Add) error
}
AddService 。。。
type Checkout ¶ added in v0.0.5
type Checkout struct {
repositories.Meta
Service CheckoutService
}
Checkout 表示一条git命令
func (*Checkout) GetMeta ¶ added in v0.0.5
func (inst *Checkout) GetMeta() *repositories.Meta
GetMeta ...
type CheckoutService ¶ added in v0.0.5
type CheckoutService interface {
repositories.Service
Run(task *Checkout) error
}
CheckoutService 。。。
type Clone ¶ added in v0.0.5
type Clone struct {
repositories.Meta
Service CloneService
}
Clone 表示一条git命令
type CloneService ¶ added in v0.0.5
type CloneService interface {
repositories.Service
Run(task *Clone) error
}
CloneService 。。。
type Commit ¶ added in v0.0.5
type Commit struct {
repositories.Meta
Service CommitService
}
Commit 表示一条git命令
func (*Commit) GetMeta ¶ added in v0.0.5
func (inst *Commit) GetMeta() *repositories.Meta
GetMeta ...
type CommitService ¶ added in v0.0.5
type CommitService interface {
repositories.Service
Run(task *Commit) error
}
CommitService 。。。
type Example ¶ added in v0.0.5
type Example struct {
repositories.Meta
Service ExampleService
}
Example 表示一条git命令
func (*Example) GetMeta ¶ added in v0.0.5
func (inst *Example) GetMeta() *repositories.Meta
GetMeta ...
type ExampleService ¶ added in v0.0.5
type ExampleService interface {
repositories.Service
Run(task *Example) error
}
ExampleService 。。。
type Fetch ¶ added in v0.0.5
type Fetch struct {
repositories.Meta
Service FetchService
Depth bool // = "--depth" // =<depth>
Deepen bool // = "--deepen" // =<depth>
ShallowSince bool // = "--shallow-since" // =<date>
ShallowExclude bool // = "--shallow-exclude" // =<revision>
NegotiationTip bool // = "--negotiation-tip" // =<commit|glob>
Refmap bool // = "--refmap" // =<refspec>
RecurseSubmodule bool // = "--recurse-submodules" // =[=yes|on-demand|no]
Jobs bool // = "--jobs" // =<n>
SubmodulePrefix bool // = "--submodule-prefix" // =<path>
RecurseSubmoduleDefault bool // = "--recurse-submodule-default" // =[yes|on-demand]
UploadPack bool // = "--upload-pack" // <upload-pack>
ServerOption bool // = "--server- ion" // =< ion>
All bool // = "--all"
Append bool // = "--append"
Unshallow bool // = "--unshallow"
UpdateShallow bool // = "--update-shallow"
NegotiateOnly bool // = "--negotiate-only"
DryRun bool // = "--dry-run"
WriteFetchHead bool // = "--write-fetch-head"
NoWriteFetchHead bool // = "--no-write-fetch-head"
Force bool // = "--force"
Keep bool // = "--keep"
Multiple bool // = "--multiple"
NoAutoMaintenance bool // = "--no-auto-maintenance"
AutoMaintenance bool // = "--auto-maintenance"
NoAutoGC bool // = "--no-auto-gc"
AutoGC bool // = "--auto-gc"
NoWriteCommitGraph bool // = "--no-write-commit-graph"
WriteCommitGraph bool // = "--write-commit-graph"
Prefetch bool // = "--prefetch"
Prune bool // = "--prune"
PruneTags bool // = "--prune-tags"
NoTags bool // = "--no-tags"
Refetch bool // = "--refetch"
Tags bool // = "--tags"
NoRecurseSubmodules bool // = "--no-recurse-submodules"
SetUpstream bool // = "--set-upstream"
UpdateHeadOK bool // = "--update-head-ok"
Quiet bool // = "--quiet"
Verbose bool // = "--verbose"
Progress bool // = "--progress"
ShowForcedUpdates bool // = "--show-forced-updates"
NoShowForcedUpdates bool // = "--no-show-forced-updates"
Ipv4 bool // = "--ipv4"
Ipv6 bool // = "--ipv6"
Stdin bool // = "--stdin"
Items []string
}
Fetch 表示一条git命令
type FetchService ¶ added in v0.0.5
type FetchService interface {
repositories.Service
Run(task *Fetch) error
}
FetchService 。。。
type Init ¶ added in v0.0.5
type Init struct {
repositories.Meta
Service InitService
Quiet bool
Bare bool
TemplateDirectory string
SeparateGitDir string
ObjectFormat string
BranchName string
Permissions string
Directory string
}
Init 表示一条git命令
type InitService ¶ added in v0.0.5
type InitService interface {
repositories.Service
Run(task *Init) error
}
InitService 。。。
type Pull ¶ added in v0.0.5
type Pull struct {
repositories.Meta
Service PullService
}
Pull 表示一条git命令
type PullService ¶ added in v0.0.5
type PullService interface {
repositories.Service
Run(task *Pull) error
}
PullService 。。。
type Push ¶ added in v0.0.5
type Push struct {
repositories.Meta
Service PushService
All bool
Mirror bool
Tags bool
FollowTags bool
Atomic bool
DryRun bool
ReceivePack string
Repo string
Force bool
Delete bool
Prune bool
Verbose bool
SetUpstream bool
PushOption string
Signed bool
SignedValue string
NoSigned bool
ForceWithLease string
ForceIfIncludes bool
NoVerify bool
RepositoryRefspecList []string
}
Push 表示一条git命令
type PushService ¶ added in v0.0.5
type PushService interface {
repositories.Service
Run(task *Push) error
}
PushService 。。。
type Status ¶ added in v0.0.5
type Status struct {
repositories.Meta
Service StatusService
}
Status 表示一条git命令
func (*Status) GetMeta ¶ added in v0.0.5
func (inst *Status) GetMeta() *repositories.Meta
GetMeta ...
type StatusService ¶ added in v0.0.5
type StatusService interface {
repositories.Service
Run(task *Status) error
}
StatusService 。。。
Click to show internal directories.
Click to hide internal directories.