Re: disallowing push to currently checked-out branch
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 17, 2009, 00:56 UTC
- Message-ID
- <alpine.DEB.1.00.0902170154330.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <499A07C4.5000908@gmail.com>
Hi,
On Tue, 17 Feb 2009, Sergio Callegari wrote:
Show 5 quoted lines
> Let us assume that I am working on branch B and that my worktree is based on > commit XYZ. Let's also assume that someone pushes behind my shoulders and > moves the tip of B (or even deletes B alltogether) either in one or in > multiple pushes. Is there an easy way so that I can now find out at what > commit (XYZ) I was before the push(es)?
Nope. There was code flying around at some stage to record in the index what commit it was based on.
I forgot why it was thrown out again; you'll have to look up the discussion yourself.
Ciao, Dscho