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

[Q] How to check git features for compatability?

From
DDominik <dominik.seifert@gmail.com>
Date
Nov 1, 2021, 14:11 UTC
Message-ID
<CACgoU8qhHunXwX=uG6AZrM=M3ofiM=AH37nVXAvN22Otwq=1eg@mail.gmail.com>
Hi,
Scenario: I want to offer a simple utility that (among other things)
automatically checks out git repositories. For that I want to use a
specific feature (that is `git clone --branch`).
Problem: Some user might have an old version of git where `git clone
--branch` is not supported at all, or not supported in the same way.
Q: How do I check which features which git version has? I fail to find
the (rather commonly seen) `changelog.md` on the official git
repository. Where should I look for a complete list? Is there a more
complete documentation that lists the "earliest supported version" or
some sort of "history of changes" for each of the git features, as is
commonly seen in the API documentation of other CLI tools (e.g.
https://nodejs.org/api/cli.html)?

(PS: First time user here. Let me know if this is how you participate in this mailing list? I could not find any info on question-asking-etiquette either?)

Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “[Q] How to check git features for compatability?”
  1. DominikNov 1, 2021
  2. Ævar Arnfjörð BjarmasonNov 1, 2021

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.