mergestrategy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mergestrategy holds the shared source-control integration strategy used across SubmitQueue, runway, and other repo-local domains. It names how a change is integrated into the target branch (rebase, squash-rebase, merge, promote).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MergeStrategy

type MergeStrategy string

MergeStrategy defines the possible source control integration methods.

const (
	// MergeStrategyUnknown is the unknown strategy. It is set by default when the structure is initialized. It should never be seen in the system and is used for error control.
	MergeStrategyUnknown MergeStrategy = ""
	// MergeStrategyRebase rebases commits onto the target branch before landing.
	MergeStrategyRebase MergeStrategy = "rebase"
	// MergeStrategySquashRebase squashes commits into a single commit before rebasing on top of the target branch.
	MergeStrategySquashRebase MergeStrategy = "squash_rebase"
	// MergeStrategyMerge merges commits into the target branch by creating a separate merge commit, preserving the commit history along with hashes.
	MergeStrategyMerge MergeStrategy = "merge"
	// MergeStrategyPromote integrates the exact revision as-is, with no content transform — it advances the target branch to an already-existing commit rather than producing new revisions. The implementer maps it to its backend (git fast-forward, Mercurial bookmark advance, Subversion/Perforce copy). Used to promote an already-landed/verified commit onto another branch.
	MergeStrategyPromote MergeStrategy = "promote"
)

Jump to

Keyboard shortcuts

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