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" )
Click to show internal directories.
Click to hide internal directories.