Module rewrite_hooks

Source
Expand description

Hooks used to have Git call back into git-branchless for various functionality.

Functions§

get_deferred_commits_path
Get the path to the file which stores the list of “deferred commits”.
hook_drop_commit_if_empty
For rebases, detect empty commits (which have probably been applied upstream) and write them to the rewritten-list file, so that they’re later passed to the post-rewrite hook.
hook_post_rewrite
Handle Git’s post-rewrite hook.
hook_register_extra_post_rewrite_hook
Register extra cleanup actions for rebase.
hook_skip_upstream_applied_commit
For rebases, if a commit is known to have been applied upstream, skip it without attempting to apply it.
save_original_head_info
Save the name of the currently checked-out branch. This should be called as part of initializing the rebase.