Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitStrategy ¶
type CommitStrategy interface {
IsFastForward() bool
IsRebase() bool
RebaseUpstream() git.RefName
NoParent() bool
String() string
}
CommitStrategy represents a method to create a commit object.
var FastForward CommitStrategy = &commitStrategy{name: "fast-forward", fastForward: true}
FastForward represents the fast-forward.
var NoParent CommitStrategy = &commitStrategy{name: "no-parent", noParent: true}
NoParent represents the method to create a commit without any parent
func RebaseOn ¶
func RebaseOn(upstreamRef git.RefName) CommitStrategy
RebaseOn represents the rebase on the upstream.
Click to show internal directories.
Click to hide internal directories.