Skip to content

amend: Add --run-hooks to invoke post-rewrite hook#275

Open
Abhishek21g wants to merge 1 commit into
Skydio:mainfrom
Abhishek21g:fix/amend-run-hooks-42
Open

amend: Add --run-hooks to invoke post-rewrite hook#275
Abhishek21g wants to merge 1 commit into
Skydio:mainfrom
Abhishek21g:fix/amend-run-hooks-42

Conversation

@Abhishek21g

Copy link
Copy Markdown

Summary

Fixes #42.

Adds revup amend --run-hooks to invoke git's post-rewrite hook after history is rewritten, with the same stdin format git uses for native amend.

Verification

python3 -m pip install -e '.[dev]'
python3 -m pytest tests/test_amend.py::TestAmendRunHooks -q

Opt-in flag runs git's post-rewrite hook after revup amend rewrites history,
matching native git amend behavior for hook-based workflows.

Fixes Skydio#42
@Abhishek21g
Abhishek21g force-pushed the fix/amend-run-hooks-42 branch from 6629b10 to 4e2a1fd Compare July 13, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run git hooks after certain operations

1 participant