Expand description

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

Functions

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.
Handle Git’s post-rewrite hook.
For rebases, register that extra cleanup actions should be taken when the rebase finishes and calls the post-rewrite hook. We don’t want to change the behavior of git rebase itself, except when called via git-branchless, so that the user’s expectations aren’t unexpectedly subverted.
For rebases, if a commit is known to have been applied upstream, skip it without attempting to apply it.
Save the name of the currently checked-out branch. This should be called as part of initializing the rebase.