git-revise icon indicating copy to clipboard operation
git-revise copied to clipboard

post-rewrite hook is not called

Open arxanas opened this issue 3 years ago • 1 comments

This is mentioned in https://github.com/mystor/git-revise/issues/35#issuecomment-523237380, but I thought I would raise a specific issue for this.

This causes git-revise to not interoperate well with git-branchless, because the latter expects post-rewrite to be called after rewrite operations to update its internal view of the commit graph. The result is that the pre-rewrite and post-rewrite commits both appear in git smartlog and related tooling. I mentioned this issue here: https://blog.waleedkhan.name/in-memory-rebases/#interactive-rebase

arxanas avatar Oct 13 '21 17:10 arxanas

Likewise, the reference-transaction hook is not called, although I'm not quite sure if git-revise moves branches. There is a good discussion of the circumstances under which various hooks should be called here: https://github.com/gitext-rs/git-stack/issues/192

arxanas avatar Mar 26 '22 22:03 arxanas