From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 523A2C2BA83 for ; Fri, 7 Feb 2020 19:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 26D6B21741 for ; Fri, 7 Feb 2020 19:12:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=pobox.com header.i=@pobox.com header.b="JiC9zTTt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgBGTMM (ORCPT ); Fri, 7 Feb 2020 14:12:12 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:55417 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbgBGTMM (ORCPT ); Fri, 7 Feb 2020 14:12:12 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id A994755004; Fri, 7 Feb 2020 14:12:09 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=H7eCx3b0TTgX tTHy9WACiJpRtg0=; b=JiC9zTTtOho5sDXvxIwy9NbKvKXZGm0W7OWZiExLyGr9 gQEapJOJN91VX05u+c05wNdBon+O7nosVET02vt7Lk3RcL4o5PxiLrS/zStH7oer dTAn3EfdQtAA2YrTsBi/UY0WFzLsz3qGIlg6Ix+wvzkjxgio1bekKOLajgB+RP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=eq0umJ ra3lbj83ENtWeWrobXM+wqw21Gxtg4xG1nUMfMZNoAl81DqrWIGOH+PHDGcL2nhp m6o/uIOwft9Sv0yvPH4x02PRTvsaeXrttnOis8tZ0ZFif595WuohTl6VlDBOkFKw xFqmKE7tPc6fTCqv+AhYhhH3XY72Hzq9iQUpk= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 61DB355003; Fri, 7 Feb 2020 14:12:09 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.76.80.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id D836C55002; Fri, 7 Feb 2020 14:12:07 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: SZEDER =?utf-8?Q?G=C3=A1bor?= , Eric Sunshine , Git List Subject: Re: [PATCH] branch: let '--edit-description' default to rebased branch during rebase References: <20200112121402.GH32750@szeder.dev> <20200124224113.GJ6837@szeder.dev> <20200131155228.GF10482@szeder.dev> <20200131161630.GG10482@szeder.dev> <20200207100247.GA1111@szeder.dev> Date: Fri, 07 Feb 2020 11:12:05 -0800 In-Reply-To: (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Fri, 7 Feb 2020 20:09:16 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Pobox-Relay-ID: BC015052-49DD-11EA-8D03-C28CBED8090B-77302942!pb-smtp1.pobox.com Content-Transfer-Encoding: quoted-printable Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Marc-Andr=C3=A9 Lureau writes: > Hi > > On Fri, Feb 7, 2020 at 7:57 PM Junio C Hamano wrote= : >> >> Marc-Andr=C3=A9 Lureau writes: >> >> > Also, when doing --edit-description there are comments like: >> > >> > # Please edit the description for the branch >> > # unrelated-history >> > >> > What else do you suggest? >> >> How about teaching "git branch --edit-description [HEAD]" notice >> when/if HEAD is detached and always error out, no matter what >> operation is in progress? > > Then --edit-description during won't default to the branch you started > from the bisect. So we are back to my original proposal only, having > branch default during rebase. Eric, do you mind? What I meant by "no matter what is in progress" is not to special case "during rebase", either. Sorry for the confusion.