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.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 1FBBD1F4D7 for ; Sun, 22 May 2022 22:03:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344410AbiEVWCs (ORCPT ); Sun, 22 May 2022 18:02:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiEVWCr (ORCPT ); Sun, 22 May 2022 18:02:47 -0400 Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BFBB2EA2B for ; Sun, 22 May 2022 15:02:45 -0700 (PDT) Received: from host-84-13-159-41.opaltelecom.net ([84.13.159.41] helo=[192.168.1.37]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1nstes-0001ql-FS; Sun, 22 May 2022 23:02:43 +0100 Message-ID: Date: Sun, 22 May 2022 23:02:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Git commands version documentation Content-Language: en-GB To: Hrushikesh Rao , git@vger.kernel.org References: From: Philip Oakley In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 22/05/2022 19:41, Hrushikesh Rao wrote: > Hey, > > I am working on git maintenance project in Jenkins. We are using > git-maintenance to improve the performance of the git commands further > improving the build speed. Git maintenance was added in git version > 2.30.0. The aim of the project is to also support systems having git > version < 2.30.0. Few git maintenance tasks very available before the > maintenance command was introduced i.e gc,commit-graph,gc and > incremental repack. > Is there a way for me to find out in which version these commands have > been introduced? Based on this we can support legacy git version. One manual method is to look at the history (blame) for the respective man pages to see when the man page was initially committed, and when appropriate options were added. Maybe use one of the hosting providers GUI if that is your choice e.g. https://github.com/git/git/blame/master/Documentation/git-gc.txt -- Philip