Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RebasedFromSummary ¶
type RebasedFromSummary struct {
BaseHash string `json:"base_hash"`
PersistHash string `json:"persist_hash"`
}
RebasedFromSummary records the base/persist pair prior to the rebase.
type ThinpackRebaseActivity ¶
type ThinpackRebaseActivity struct{}
ThinpackRebaseActivity implements the RegisterableOp interface.
func NewThinpackRebaseActivity ¶
func NewThinpackRebaseActivity() *ThinpackRebaseActivity
NewThinpackRebaseActivity constructs a thinpack rebase activity wrapper.
func (*ThinpackRebaseActivity) Execute ¶
func (a *ThinpackRebaseActivity) Execute(inv ops.OpDependencies, ctx context.Context, input ThinpackRebaseInput) (ThinpackRebaseOutput, error)
Execute performs the thin-pack aware rebase operation.
func (*ThinpackRebaseActivity) GetMetadata ¶
func (a *ThinpackRebaseActivity) GetMetadata() ops.OpMetadata
GetMetadata describes the activity for registry/discovery.
type ThinpackRebaseInput ¶
type ThinpackRebaseInput struct {
RepoPath string `json:"repo_path,omitempty" default:"{{ context.environment.worktree_path }}" validate:"required,dir"`
TargetBaseHash string `json:"target_base_hash" validate:"required,hexadecimal,min=7,max=40"`
UpstreamRemote string `json:"upstream_remote,omitempty"`
PreserveAuthor *bool `json:"preserve_author,omitempty"`
UpdateRefs string `json:"update_refs,omitempty"`
BaseHash string `json:"base_hash" default:"{{ context.git.resolved_hash }}" validate:"required,hexadecimal,min=7,max=40"`
PersistHash string `json:"persist_hash,omitempty" validate:"omitempty,hexadecimal,min=7,max=40"`
BaseRepo string `json:"base_repo,omitempty" default:"{{ context.git.repo }}"`
GitAuthor string `json:"git_author,omitempty" default:"{{ context.git.author }}"`
CellName string `json:"cell_name,omitempty" default:"{{ context.workflow.cell }}"`
}
ThinpackRebaseInput captures the parameters required to rebase a thin-pack backed workspace.
type ThinpackRebaseOutput ¶
type ThinpackRebaseOutput struct {
TargetBaseHash string `json:"target_base_hash"`
NewBaseHash string `json:"new_base_hash"`
NewPersistHash string `json:"new_persist_hash"`
UpdatedRef string `json:"updated_ref,omitempty"`
RebasedFrom RebasedFromSummary `json:"rebased_from"`
GitContextPatch map[string]interface{} `json:"git_context_patch,omitempty"`
}
ThinpackRebaseOutput returns details about the rebase along with metadata for downstream ops.
func Run ¶
func Run(ctx context.Context, input ThinpackRebaseInput) (*ThinpackRebaseOutput, error)
Run performs the thin-pack aware rebase and returns structured outputs.
Click to show internal directories.
Click to hide internal directories.