Re: [PATCH RFC] Add a config verbose option fetch and push
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 21, 2010, 17:10 UTC
- Message-ID
- <AANLkTil-PDpdkcJaJn2FUrJrSIJ6lP0OcvY5l7HRorsa@mail.gmail.com>
- In-Reply-To
- <4bf6b6f5.dd79dc0a.5533.2acd@mx.google.com>
Since Peter Kjellerstedt wanted --ff-only, and you want --verbose. I wonder whether a better solution wouldn't be to farm this functionality out to the config parser.
I.e. you'd do something like:
static struct option builtin_fetch_options[] = {
OPT__PROGRAM_NAME("fetch"), /* this is new */
OPT__VERBOSITY(&verbosity),
OPT_BOOLEAN(0, "all", &all,
"fetch from all remotes"),
...And then in your .gitconfig:
[fetch "option"]
verbose = 1Is there any reason not to add such a general facility?