Add support for
1. pre-rebase: This hook is called before rebasing. It can be used to halt the rebase process if certain conditions are not met.
2. post-rewrite: This hook runs after commands like git commit --amend and git rebase. It is passed a list of rewritten commits.
Note Both of these commands can send $1
pre-rebase:
• Description: Run before rebasing is started.
• $1: The upstream branch being rebased onto.
post-rewrite:
• Description: Run after commands that rewrite commits (e.g., git commit --amend, git rebase).
• $1: Command that triggered the rewrite (amend or rebase).
Add support for
Note Both of these commands can send $1
pre-rebase:
post-rewrite: