Documentation
¶
Index ¶
- func AllBranches(ctx context.Context, dEnv *env.DoltEnv, replay ReplayCommitFn, ...) error
- func AllBranchesByRoots(ctx context.Context, dEnv *env.DoltEnv, replay ReplayRootFn, ...) error
- func CurrentBranch(ctx context.Context, dEnv *env.DoltEnv, replay ReplayCommitFn, ...) error
- func CurrentBranchByRoot(ctx context.Context, dEnv *env.DoltEnv, replay ReplayRootFn, ...) error
- type NeedsRebaseFn
- type ReplayCommitFn
- type ReplayRootFn
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.