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 0343C1F506 for ; Fri, 23 Sep 2022 21:04:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbiIWVDp (ORCPT ); Fri, 23 Sep 2022 17:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232483AbiIWVDW (ORCPT ); Fri, 23 Sep 2022 17:03:22 -0400 X-Greylist: delayed 553 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 23 Sep 2022 14:03:18 PDT Received: from clausfischer.com (clausfischer.com [78.46.66.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086D311D0F5 for ; Fri, 23 Sep 2022 14:03:18 -0700 (PDT) Received: from newton.clausfischer.com (localhost.localdomain [127.0.0.1]) by clausfischer.com (Postfix) with ESMTP id 512948A0577 for ; Fri, 23 Sep 2022 22:54:03 +0200 (CEST) Received: by newton.clausfischer.com (Postfix, from userid 1000) id 2272239A0C76; Fri, 23 Sep 2022 22:54:03 +0200 (CEST) Date: Fri, 23 Sep 2022 22:54:03 +0200 From: Claus Fischer To: git@vger.kernel.org Subject: Scriptable mode for git bisect Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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? *** 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