pre-rebase safety hook
- From
Tim Harper <timcharper@gmail.com>
- Date
- Dec 4, 2008, 17:58 UTC
- Message-ID
- <e1a5e9a00812040958u3af4c69ofba66567baacb79c@mail.gmail.com>
Is anyone aware of a pre-rebase hook script that will prevent (or at least warn) you from letting a rebase rewrite a commit that has been pushed or merged into any branch except it's own?
I've activated the pre-rebase.sample, and it does seem to give me any warnings at all:
Here's the terminal output demonstrating what I mean:
http://pastie.org/331082
Thanks!
Tim