Expand description
Tools for editing the commit graph.
Modules§
- rewrite_
hooks - Hooks used to have Git call back into
git-branchless
for various functionality. - testing
- Testing helpers.
Structs§
- Build
Rebase Plan Options - Options used to build a rebase plan.
- Execute
Rebase Plan Options - Options to use when executing a
RebasePlan
. - Rebase
Plan - Represents a sequence of commands that can be executed to carry out a rebase operation.
- Rebase
Plan Builder - Builder for a rebase plan. Unlike regular Git rebases, a
git-branchless
rebase plan can move multiple unrelated subtrees to unrelated destinations. - Rebase
Plan Permissions - A token representing that the rebase plan has been checked for validity.
- Repo
Resource - A thread-safe
Repo
resource pool.
Enums§
- Build
Rebase Plan Error - An error caused when attempting to build a rebase plan.
- Execute
Rebase Plan Result - The result of executing a rebase plan.
- Failed
Merge Info - Information about a failure to merge that occurred while moving commits.
- Merge
Conflict Remediation - What to suggest that the user do in order to resolve a merge conflict.
- OidOr
Label - Represents the target for certain
RebaseCommand
s. - Rebase
Command - A command that can be applied for either in-memory or on-disk rebases.
Functions§
- execute_
rebase_ plan - Execute the provided rebase plan. Returns the exit status (zero indicates success).
- find_
abandoned_ children - Find commits which have been “abandoned” in the commit graph.
- find_
rewrite_ target - For a rewritten commit, find the newest version of the commit.
- move_
branches - Given a list of rewritten OIDs, move the branches attached to those OIDs
from their old commits to their new commits. Invoke the
reference-transaction
hook when done.
Type Aliases§
- Repo
Pool - Type synonym for
ResourcePool<RepoResource>
.