From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a5-smtp.messagingengine.com (fhigh-a5-smtp.messagingengine.com [103.168.172.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28F8242F6E3 for ; Thu, 16 Jul 2026 17:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784222544; cv=none; b=cGiVbG7jzEe8gV6zo6Z+eLpRA073Tx3w5ylIX9iK4u13LRzguVVJNgKsVMmnWIPAOhk8j7iRGjP+yNBsKKbojsq/tcHysYgkMAjiu5nxbgBoSgJg2FtIJZSXf1cVi2OflRXUKtG2S6QCa2QWssn3egZcl8m4ArkWOKbEBTabQ+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784222544; c=relaxed/simple; bh=XobiEQFbwkxMeunJLVUFOkSFeDHFeMgGNpMuj35EYIE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=igG6u5z32e/sBXZaNcIX2iSFZgD0DiTMYdxVN06FXC1eQ/Lu4+M4Zj0KV6iZLQeFhXz2qvVvhMfm/rPAJhkZxxTjLIq+ZvrinmcjGeQM/7oxgUQtNUDzeDGMsIoqwqUzKz5CzZhJoTVJspX5j5uc/drzKYJ6bqtn0ohqYH7hdK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=iRZZX98f; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=cDZ3VeXQ; arc=none smtp.client-ip=103.168.172.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="iRZZX98f"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="cDZ3VeXQ" Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2965714000E3; Thu, 16 Jul 2026 13:22:22 -0400 (EDT) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-06.internal (MEProxy); Thu, 16 Jul 2026 13:22:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1784222542; x=1784308942; bh=hMzH+f2V6d lNiUHjliKZmKXSlWhVG758n1Rq1Um3kgM=; b=iRZZX98ft/VVYtmW7SPIQ9am0d f017SetK+uhZzaSm9jJKhT2Zc04EfurnHX75jf+UMNq8ustGA8wxjkXezVFk1h4P rfjraF6Qm37f3M054YnzqpRO81PENDFrlW49tZrxEPOXrNnLvWK0pHRndvjwzMOi Z+1jxBX8oVFano84iaT9MBus5rdf+8Ek1ouacq3IQOJzwgxrHvQLyNyvLkYdCAtH xzH0FLDuo2I3ldlbSliRPyOLjB/X54LZXlrg9pt3b2C9yUQXGwVsnkmfY3WPs/Sj nM7kcQkIOUju2t9DfJyP7cwmPuhDYTvmf26kDs1EUXzxnHOdjYveyBsS+pqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1784222542; x=1784308942; bh=hMzH+f2V6dlN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fPbyP24aoJSQ/LmtnaRvmf8mJQA X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jul 2026 13:22:21 -0400 (EDT) From: Junio C Hamano To: "Harald Nordgren via GitGitGadget" Cc: git@vger.kernel.org, Harald Nordgren Subject: Re: [PATCH 3/3] bisect: add --auto-reset to leave when done In-Reply-To: (Harald Nordgren via GitGitGadget's message of "Thu, 16 Jul 2026 05:35:59 +0000") References: Date: Thu, 16 Jul 2026 10:22:20 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Harald Nordgren via GitGitGadget" writes: > From: Harald Nordgren > > When a bisection finished, "git bisect" reported the first bad commit > but left the session active until "git bisect reset" was run by hand. If this gives an observation of the behavior of the current code, please write it in the present tense. > Add an "--auto-reset" option, accepted by both "git bisect start" and > "git bisect run", that resets as soon as the first bad commit is found, > returning to the commit checked out before "git bisect start". The flag > is persisted in a BISECT_AUTO_RESET state file and the restoring > checkout is done quietly. I often find myself, after the culprit is found, running 'git reset --hard' or 'git bisect reset' to jump to the problematic commit to investigate further. If '--auto-reset' leaves me checked out on that bad commit, that would be a very welcome change. If it only returns me to where I started before the bisection, well, 'Meh'.