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

Re: [PATCH v5] commit: add a commit.verbose config variable

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 14, 2016, 21:29 UTC
Message-ID
<CAPig+cTt+Mi=gOREG2zU7vbtB6qk7dVS3mWeMBY37ZwFp_oZng@mail.gmail.com>
In-Reply-To
<CAFZEwPP_SZsk+B+1L93snQji=wg728P3Oq94oVJ+ZJkhmdC9Yw@mail.gmail.com>
On Mon, Mar 14, 2016 at 3:09 PM, Pranit Bauva <pranit.bauva@gmail.com> wrote:
Show 11 quoted lines
> On Mon, Mar 14, 2016 at 1:54 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
>> Not at all mandatory, but it wouldn't hurt to add a couple additional tests:
>>
>> * commit.verbose=true and --verbose
>> * commit.verbose=false and --no-verbose
>
> I was thinking of putting these tests as when I was debugging (simply
> by printing verbose variable), I found that when commit.verbose=true
> and --verbose the value of the variable `verbose` is 2. But then I
> thought it wouldn't be that useful. But since you have pointed it out
> now, I will definitely include them.

The '2' is a result of OPT_VERBOSE() supporting multiple levels of verbosity (that is, "--verbose --verbose" could give more noisy output than "--verbose") for commands for which verbosity levels make sense.

In this case, I wasn't suggesting these news tests for that reason, but merely to prove that the combinations behave in the expected way. By the way, the just-submitted v6 seems to be lacking these new tests (though, as I said, they are not by any means mandatory).

Previous: Pranit BauvaNext: Eric Sunshine
Message 4 of 5 in “commit: add a commit.verbose config variable”
  1. commit: add a commit.verbose config variablePranit Bauva, Mar 12, 2016
  2. Eric SunshineMar 14, 2016
  3. Pranit BauvaMar 14, 2016
  4. Eric SunshineMar 14, 2016
  5. Eric SunshineMar 14, 2016

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.