From: Andreas Schwab Date: Tue, 08 Jan 2019 20:51:19 GMT Subject: Re: git rebase: retain original head? Message-ID: <87r2dmc1q0.fsf@igel.home> In-Reply-To: On Jan 08 2019, Markus Wiederkehr wrote: > On Tue, Jan 8, 2019 at 6:43 PM Andreas Schwab wrote: >> >> On Jan 08 2019, Markus Wiederkehr wrote: >> >> > Would it be possible to retain this information? >> >> You could use the reflog of the current branch, where it is the second >> entry. > > It is not, depending on what happens in the rebase it could be any > entry. Don't look at the HEAD reflog, use the branch reflog, ie. @{1}. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."