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

1 messages from 2013-06-15 to 2013-06-15. Participants: Ramsay Jones.
Thread: https://gitlist.dev/t/34153

## Ramsay Jones, 2013-06-15 20:28

Subject: [PATCH 0/2] Add missing calls to git_config()
Message-ID: <51BCCE67.9010105@ramsay1.demon.co.uk>
URL: https://gitlist.dev/e/51BCCE67.9010105%40ramsay1.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

```
