From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS54825 147.75.80.0/22 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [147.75.80.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2C0FE1F44D for ; Tue, 19 Mar 2024 11:24:29 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=gouders.net header.i=@gouders.net header.a=rsa-sha256 header.s=gnet header.b=OE0YL8fm; dkim-atps=neutral Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B465A1F233ED for ; Tue, 19 Mar 2024 11:24:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B4157EF14; Tue, 19 Mar 2024 11:24:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gouders.net header.i=@gouders.net header.b="OE0YL8fm" Received: from mx10.gouders.net (mx10.gouders.net [202.61.206.94]) (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 0AF2E54FAB for ; Tue, 19 Mar 2024 11:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.61.206.94 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710847454; cv=none; b=Gw7kQJrgiIzdONLHRUTH5+Q6NmPb+J+MPb6NIxXIwrEU5WG0G6VovZ5PFd/uNsCGH3oj/ohj1Y8thU+kUdjtdGst1IcjNP+e4WZdFkAx9fP1/kVOHHfGwmCa8FKHlYxO1qV5GIvEPyo12zsKvItAfBoZfz+awclSIuKQESl2Jcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710847454; c=relaxed/simple; bh=PtTVjdORV58aghawW1LwdVfSF26JJsC05la/bU1QIeg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WehapQMMQAQEfjSsSlMiX7jzwRrN2eXvKf2/J5P1OtOUIX4TmGTLlNZ9Njhxs78Mi4XDMJUb0Ty+Csq+6M0v+KN9RtJA++QCqSV3mUsk8yRe9avtxJe4LOREqBsnXUkyDjnIlk5PUqmCrBovkBRwbzQDQ6SbG4O8ixAO9f+NLhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gouders.net; spf=pass smtp.mailfrom=gouders.net; dkim=pass (1024-bit key) header.d=gouders.net header.i=@gouders.net header.b=OE0YL8fm; arc=none smtp.client-ip=202.61.206.94 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gouders.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gouders.net Received: from localhost ([193.175.198.193]) (authenticated bits=0) by mx10.gouders.net (8.17.1.9/8.17.1.9) with ESMTPSA id 42JBNuCR017008 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 19 Mar 2024 12:23:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gouders.net; s=gnet; t=1710847437; bh=PtTVjdORV58aghawW1LwdVfSF26JJsC05la/bU1QIeg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OE0YL8fmGgrLw4moxMVh88gxbNerajiEK3rQVMcW23vRIOsXsIhkZ3aNi3hahtbxF MIr28p5phvVDW4DQrthuPqslmpXjvVrQmFPr+A1YSa7HAl5D0FajgmhaCFqgU86qJ0 I6c7VFKCXuXFVsf2kaCOLvStQ4IdJxSJ0lGA7yGE= From: Dirk Gouders To: git@vger.kernel.org Cc: Dirk Gouders , Junio C Hamano , Emily Shaffer Subject: [PATCH v2 0/5] Fixes for Documentation/MyFirstObjectWalk.txt Date: Tue, 19 Mar 2024 12:23:10 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The second spin for this series. --- Changes since v1: * Added Emily to Cc in the hope for a review * Remove superfluous tags from [1/5] and [3/5] * Replace bashism `|&` by `2>&1 |` in [5/5] --- Dirk Gouders (5): MyFirstObjectWalk: use additional arg in config_fn_t MyFirstObjectWalk: fix misspelled "builtins/" MyFirstObjectWalk: fix filtered object walk MyFirstObjectWalk: fix description for counting omitted objects MyFirstObjectWalk: add stderr to pipe processing Documentation/MyFirstObjectWalk.txt | 36 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) Range-diff against v1: 1: 15b74566e0 ! 1: babf04295e MyFirstObjectWalk: use additional arg in config_fn_t @@ Commit message Fix those calls and the example git_walken_config() to use that additional argument. - Fixes: a4e7e317 (config: add ctx arg to config_fn_t) - Cc: Glen Choo Signed-off-by: Dirk Gouders ## Documentation/MyFirstObjectWalk.txt ## 2: c1ac705840 = 2: ab0b820df7 MyFirstObjectWalk: fix misspelled "builtins/" 3: 0f67a161ef ! 3: fac6886af3 MyFirstObjectWalk: fix filtered object walk @@ Commit message rev->filter to parse_list_objects_filter() in accordance to such a call in revisions.c, for example. - Fixes: f0d2f849 (MyFirstObjectWalk: update recommended usage) - Cc: Derrick Stolee Signed-off-by: Dirk Gouders ## Documentation/MyFirstObjectWalk.txt ## 4: 637070dd48 = 4: 33a1845889 MyFirstObjectWalk: fix description for counting omitted objects 5: a2d30eff21 ! 5: 64c36dbf16 MyFirstObjectWalk: add stderr to pipe processing @@ Commit message trace messages are sent to stderr if GIT_TRACE is set to '1', so those commands do not produce the described results. - Fix this by using the operator '|&' to additionally connect stderr to - stdin of the latter command. + Fix this by redirecting stderr to stdout prior to the pipe operator + to additionally connect stderr to stdin of the latter command. Signed-off-by: Dirk Gouders @@ Documentation/MyFirstObjectWalk.txt: those lines without having to recompile. ---- -$ GIT_TRACE=1 ./bin-wrappers/git walken | head -n 10 -+$ GIT_TRACE=1 ./bin-wrappers/git walken |& head -n 10 ++$ GIT_TRACE=1 ./bin-wrappers/git walken 2>&1 | head -n 10 ---- Take a look at the top commit with `git show` and the object ID you printed; it @@ Documentation/MyFirstObjectWalk.txt: of the first handful: ---- $ make -$ GIT_TRACE=1 ./bin-wrappers git walken | tail -n 10 -+$ GIT_TRACE=1 ./bin-wrappers git walken |& tail -n 10 ++$ GIT_TRACE=1 ./bin-wrappers git walken 2>&1 | tail -n 10 ---- The last commit object given should have the same OID as the one we saw at the -- 2.43.0