From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CB27C433F5 for ; Fri, 24 Dec 2021 18:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353429AbhLXSNW (ORCPT ); Fri, 24 Dec 2021 13:13:22 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:12117 "EHLO smtp.hosts.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235989AbhLXSNV (ORCPT ); Fri, 24 Dec 2021 13:13:21 -0500 Received: from host-92-7-140-211.as13285.net ([92.7.140.211] helo=[192.168.1.37]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1n0p4B-0009FV-7Y; Fri, 24 Dec 2021 18:13:19 +0000 Message-ID: Date: Fri, 24 Dec 2021 18:13:20 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: Git internal command line parser Content-Language: en-GB To: Lemuria , git@vger.kernel.org References: <0347f273-f9e9-3ce6-2a95-f1ce71285c09@gmail.com> From: Philip Oakley In-Reply-To: <0347f273-f9e9-3ce6-2a95-f1ce71285c09@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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 > > 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