magit/magit — comment on commit d4a3dff143efbecd62f86b2bf2b307a74a6473cd
File:  line 0
By pjweisberg:

I was actually thinking along the lines of this: https://github.com/pjweisberg/magit/commit/447d13266bfcb8ef84e9d0f18c9ac1bd79d218b6

Too aggressive? The way you implemented it has the advantage that a user can easily disable it by just taking that function out of `rebase-mode-hook'. (Though I notice it doesn't account for the edge-case of someone changing their `before-save-hook' while the rebase-mode buffer is open.)