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

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 = 1
Is there any reason not to add such a general facility?
Previous: Nathan W. PanikeNext: Thomas Rast
Message 2 of 6 in “Re: [PATCH RFC] Add a config verbose option fetch and push”
  1. Nathan W. PanikeMay 21, 2010
  2. Ævar Arnfjörð BjarmasonMay 21, 2010
  3. Thomas RastMay 22, 2010
  4. Ævar Arnfjörð BjarmasonMay 22, 2010
  5. Thomas RastMay 22, 2010
  6. Ævar Arnfjörð BjarmasonMay 22, 2010

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.