git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git commands version documentation

From
Philip Oakley <philipoakley@iee.email>
Date
May 22, 2022, 22:02 UTC
Message-ID
<f3814646-4763-62e1-b64e-d1aab3fdbbc8@iee.email>
In-Reply-To
<ccb312dc-c2cc-ca3a-e659-0f87ceec0d15@gmail.com>
On 22/05/2022 19:41, Hrushikesh Rao wrote:
Show 9 quoted lines
> 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

Previous: Hrushikesh RaoNext: Junio C Hamano
Message 2 of 7 in “Git commands version documentation”
  1. Hrushikesh RaoMay 22, 2022
  2. Philip OakleyMay 22, 2022
  3. Junio C HamanoMay 22, 2022
  4. Philip OakleyMay 23, 2022
  5. Ævar Arnfjörð BjarmasonMay 23, 2022
  6. Philip OakleyMay 23, 2022
  7. Ævar Arnfjörð BjarmasonMay 23, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.