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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 2CBD21F506 for ; Sat, 24 Sep 2022 09:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233584AbiIXJdB convert rfc822-to-8bit (ORCPT ); Sat, 24 Sep 2022 05:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbiIXJdA (ORCPT ); Sat, 24 Sep 2022 05:33:00 -0400 Received: from clausfischer.com (clausfischer.com [78.46.66.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6A83E7E3B for ; Sat, 24 Sep 2022 02:32:56 -0700 (PDT) Received: from smtpclient.apple (host-79-16-150-161.retail.telecomitalia.it [79.16.150.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: claus.fischer@clausfischer.com) by clausfischer.com (Postfix) with ESMTPSA id CC0D28A0109; Sat, 24 Sep 2022 11:32:54 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: Scriptable mode for git bisect From: Claus Fischer In-Reply-To: Date: Sat, 24 Sep 2022 11:32:52 +0200 Cc: git@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: To: =?utf-8?B?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Mailer: Apple Mail (2.3693.60.0.1.1) Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org I tried that but it turns out it does not always stop at the bad revision. Claus > On 24.09.2022, at 03:44, Đoàn Trần Công Danh wrote: > > On 2022-09-23 22:54:03+0200, Claus Fischer wrote: >> >> Dear Git maintainers, >> >> I have looked at the manpage of git bisect but have not found >> what I need: >> I would like git bisect not just to report the 'bad' revision >> within a bunch of text but instead either stop at the first >> bad revision (the last good will then be HEAD~1) or report >> it in a scriptable way, i.e. >> >> BADHEAD=$(git bisect run --shut-up-and-report-the-bad) >> >> Have I overlooked anything? > > After running "git bisect run" > You can take its revisions with: > > BADHEAD=$(git rev-parse --verify refs/bisect/bad) > >> >> *** >> >> The pourpose is to keep the source trees of two different >> projects that share a few files synchronous. >> My good/bad-script is a script that checks whether these >> files are similar. >> I want git to stop at the first change in source tree A >> so that I can update source tree B with the same commit >> message, then proceed to the next change in A that >> changes one of those files. >> >> Regards, >> >> Cluas > > -- > Danh