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

[PATCH 0/2] Add missing calls to git_config()

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Jun 15, 2013, 20:28 UTC
Message-ID
<51BCCE67.9010105@ramsay1.demon.co.uk>
Hi Junio,

I recently had need to use the '-c' option to git in order to set some config variables from the command line; specifically with 'git show-ref' and 'git pack-refs'. I haven't looked to see if any other commands need similar attention, but:

    $ git grep 'cmd_.*(int argc' -- builtin | wc -l
    109
    $ git grep 'git_config(' -- builtin | wc -l
    80
    $
... maybe. ;-)

[I did think about separating the command line processing from the config file processing; maybe some commands could accept config settings from the command line, but do not need/want the regular config file processing? *dunno*.]

ATB, Ramsay Jones

Ramsay Jones (2):
  show-ref.c: Add missing call to git_config()
  pack-refs.c: Add missing call to git_config()
 builtin/pack-refs.c | 3 +++
 builtin/show-ref.c  | 2 ++
 2 files changed, 5 insertions(+)
-- 
1.8.3
Message 1 of 1 in “Add missing calls to git_config()”
  1. 0/2 Add missing calls to git_config()Ramsay Jones, Jun 15, 2013

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.