Help us shape the future of Go! Take the 2026 Go Developer Survey

thinpackrebase

package
v0.0.84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOp

func GetOp() ops.RegisterableOp

GetOp exposes the activity in a recipe-friendly form.

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

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.execution.base_hash }}" validate:"required,hexadecimal,min=7,max=40"`
	PersistHash    string `json:"persist_hash,omitempty" default:"{{ context.git.execution.head_hash }}" 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

Run performs the thin-pack aware rebase and returns structured outputs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL