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

Re: [PATCH 0/6] Some more git config completions

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Jun 4, 2017, 18:41 UTC
Message-ID
<20170604184110.26804-1-szeder.dev@gmail.com>
In-Reply-To
<CACBZZX6aGkBaQtjKNx09-XEbhXNubOnhJdVXYkNq419wetDvqg@mail.gmail.com>
> As an aside from this series, has anyone ever proposed some method of
> semi-automatically keeping this up-to-date?

For configuration variables, not that I know of. For command line options, there was an attempt to enhance parse-options to dump all command line options and use this in the completion script on-demand to lazy-initialize command-specific variables holding the list of options:

  http://public-inbox.org/git/1334140165-24958-1-git-send-email-bebarino@gmail.com/T/#u
> Seems we're in a continual
> cycle of adding flags/config, forgetting to update this, then updating
> it. At least the command-line flags should be easy to parse out in
> some test, ditto config variables from config.txt maybe...
A couple of thoughts concerning configuration variables:
 - config.txt includes other files listing configuration variables,
   too.
 - There are many config variables with subsections, e.g.
   'branch.<name>.description'.  That '<name>' is not good for
   completion, of course.
 - Some config variables are not listed with their full names, see
   'advice.*' (this is easy to fix).
 - Perhaps there are config variables that are only mentioned in the
   docs of the relevant command, but not in config.txt (or in the
   included files).
 - There are definitely config variables that are not mentioned in the
   docs at all, e.g. the 'bash.*' variables controlling __git_ps1().
 - The completion script is currently self-contained and ready to be
   used as-is.  I think that's quite nice.  This wouldn't be the case
   if we want to include an automatically generated list of config
   variables extracted from config.txt during the build process.
Previous: Junio C Hamano
Message 10 of 10 in “Some more git config completions”
  1. 0/6 Some more git config completionsRikard Falkeborn, May 27, 2017
  2. 2/6 completion: Add git config core completionsRikard Falkeborn, May 27, 2017
  3. 1/6 completion: Add git config gc completionsRikard Falkeborn, May 27, 2017
  4. 4/6 completion: Add git config advice completionsRikard Falkeborn, May 27, 2017
  5. 6/6 completion: Add git config credentialCache.ignoreSIGHUPRikard Falkeborn, May 27, 2017
  6. 3/6 completion: Add git config am.threeWay completionRikard Falkeborn, May 27, 2017
  7. 5/6 completion: Add git config credential completionsRikard Falkeborn, May 27, 2017
  8. Ævar Arnfjörð BjarmasonJun 1, 2017
  9. Junio C HamanoJun 2, 2017
  10. SZEDER GáborJun 4, 2017

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.