Subject: Re: git rebase: retain original head?

From: Andreas Schwab <[email-masked]>
Date: Tue, 08 Jan 2019 21:51:19 +0100

On Jan 08 2019, Markus Wiederkehr <[email-masked]> wrote:

> On Tue, Jan 8, 2019 at 6:43 PM Andreas Schwab <[email-masked]> wrote:
>>
>> On Jan 08 2019, Markus Wiederkehr <[email-masked]> 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, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."