From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 113EE1F803 for ; Tue, 8 Jan 2019 20:51:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729484AbfAHUvY (ORCPT ); Tue, 8 Jan 2019 15:51:24 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:57800 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728766AbfAHUvY (ORCPT ); Tue, 8 Jan 2019 15:51:24 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 43Z4DV1yF5z1qvvv; Tue, 8 Jan 2019 21:51:22 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 43Z4DV1nP4z1qsmr; Tue, 8 Jan 2019 21:51:22 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 2p9de5Z42YoX; Tue, 8 Jan 2019 21:51:20 +0100 (CET) X-Auth-Info: z8tIA1DObUM/BtXD4btHkWasNw/yP2xJ6EOexinqnh45lidgg8qpO+9P7zPLryY0 Received: from igel.home (ppp-188-174-153-44.dynamic.mnet-online.de [188.174.153.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 8 Jan 2019 21:51:20 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 904102C1EC4; Tue, 8 Jan 2019 21:51:19 +0100 (CET) From: Andreas Schwab To: Markus Wiederkehr Cc: git@vger.kernel.org Subject: Re: git rebase: retain original head? References: <87va2zavu1.fsf@igel.home> X-Yow: All of a sudden, I want to THROW OVER my promising ACTING CAREER, grow a LONG BLACK BEARD and wear a BASEBALL HAT!! ... Although I don't know WHY!! Date: Tue, 08 Jan 2019 21:51:19 +0100 In-Reply-To: (Markus Wiederkehr's message of "Tue, 8 Jan 2019 21:38:21 +0100") Message-ID: <87r2dmc1q0.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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."