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 thepost-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.