git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Tim Harper" <timcharper@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: pre-rebase safety hook
Date: Thu, 4 Dec 2008 10:58:41 -0700	[thread overview]
Message-ID: <e1a5e9a00812040958u3af4c69ofba66567baacb79c@mail.gmail.com> (raw)

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

             reply	other threads:[~2008-12-04 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 17:58 Tim Harper [this message]
2008-12-04 19:35 ` pre-rebase safety hook Junio C Hamano
2008-12-04 22:29   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1a5e9a00812040958u3af4c69ofba66567baacb79c@mail.gmail.com \
    --to=timcharper@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).