commitstrategy

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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