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

Re: Git internal command line parser

From
Philip Oakley <philipoakley@iee.email>
Date
Dec 24, 2021, 18:13 UTC
Message-ID
<e2726eaa-ba73-4141-bf61-89d5a7e9a9c2@iee.email>
In-Reply-To
<0347f273-f9e9-3ce6-2a95-f1ce71285c09@gmail.com>
On 24/12/2021 14:38, Lemuria wrote:
> #=< TLDR: Where's the code for git's internal command line parser? >===#
>
> I'm interested in the internals of git, more specifically it's command
> line parser.
One place to start is https://github.com/git/git/blob/master/git.c
Show 9 quoted lines
>
> Does Git use a library like getopt for it's command line handling, or
> does it use a custom parser?
>
> If possible, I would appreciate being redirected to the source code
> files that handle this.
>
> Sincerely,
> Lemuria
Philip
Previous: LemuriaNext: Lemuria
Message 2 of 11 in “Git internal command line parser”
  1. LemuriaDec 24, 2021
  2. Philip OakleyDec 24, 2021
  3. LemuriaDec 24, 2021
  4. Philip OakleyDec 24, 2021
  5. LemuriaDec 24, 2021
  6. João Victor BonfimDec 25, 2021
  7. LemuriaDec 25, 2021
  8. João Victor BonfimDec 26, 2021
  9. LemuriaDec 26, 2021
  10. Philip OakleyDec 27, 2021
  11. João Victor BonfimDec 29, 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.