Module rewrite

Source

Structs§

CommitRewriter
Helps rewrite a commit.
CommitToSquash
DuplicateCommitsStats
MoveCommitsStats
RebaseOptions
Controls the configuration of a rebase.
RewriteRefsOptions
Configuration for MutableRepo::update_rewritten_references().
SquashedCommit
Resulting commit builder and stats to be returned by squash_commits().

Enums§

EmptyBehaviour
MoveCommitsTarget
RebasedCommit

Functions§

duplicate_commits
Duplicates the given target_commits onto a new location in the graph.
duplicate_commits_onto_parents
Duplicates the given target_commits onto their original parents or other duplicated commits.
merge_commit_trees
Merges commits and tries to resolve any conflicts recursively.
merge_commit_trees_no_resolve_without_repo
Merges commits without attempting to resolve file conflicts.
move_commits
Moves target_commits from their current location to a new location in the graph.
rebase_commit
rebase_commit_with_options
rebase_to_dest_parent
Moves changes from sources to the destination parent, returns new tree.
restore_tree
Restore matching paths from the source into the destination.
squash_commits
Squash sources into destination and return a SquashedCommit for the resulting commit. Caller is responsible for setting the description and finishing the commit.