rebase

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllBranches

func AllBranches(ctx context.Context, dEnv *env.DoltEnv, replay ReplayCommitFn, nerf NeedsRebaseFn) error

AllBranches rewrites the history of all branches in the repo using the |replay| function.

func AllBranchesByRoots

func AllBranchesByRoots(ctx context.Context, dEnv *env.DoltEnv, replay ReplayRootFn, nerf NeedsRebaseFn) error

AllBranchesByRoots rewrites the history of all branches in the repo using the |replay| function.

func CurrentBranch

func CurrentBranch(ctx context.Context, dEnv *env.DoltEnv, replay ReplayCommitFn, nerf NeedsRebaseFn) error

CurrentBranch rewrites the history of the current branch using the |replay| function.

func CurrentBranchByRoot

func CurrentBranchByRoot(ctx context.Context, dEnv *env.DoltEnv, replay ReplayRootFn, nerf NeedsRebaseFn) error

CurrentBranchByRoot rewrites the history of the current branch using the |replay| function.

Types

type NeedsRebaseFn

type NeedsRebaseFn func(ctx context.Context, cm *doltdb.Commit) (bool, error)

func EntireHistory

func EntireHistory() NeedsRebaseFn

EntireHistory returns a |NeedsRebaseFn| that rebases the entire commit history.

func StopAtCommit

func StopAtCommit(stopCommit *doltdb.Commit) NeedsRebaseFn

StopAtCommit returns a |NeedsRebaseFn| that rebases the commit history until |stopCommit| is reached. It will error if |stopCommit| is not reached.

type ReplayCommitFn

type ReplayCommitFn func(ctx context.Context, commit, parent, rebasedParent *doltdb.Commit) (rebaseRoot *doltdb.RootValue, err error)

type ReplayRootFn

type ReplayRootFn func(ctx context.Context, root, parentRoot, rebasedParentRoot *doltdb.RootValue) (rebaseRoot *doltdb.RootValue, err error)

Jump to

Keyboard shortcuts

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