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

Re: [PATCH/RFC v3] add a commit.verbose config variable

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2016, 21:46 UTC
Message-ID
<xmqqy49qc8ga.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAFZEwPP5_rBKH_=0pv_3PszLYtnznXeGJg1+yjwbiH0m_BqdZQ@mail.gmail.com>
Pranit Bauva <pranit.bauva@gmail.com> writes:
Show 10 quoted lines
> On Fri, Mar 11, 2016 at 3:04 AM, Junio C Hamano <gitster@pobox.com>
> wrote:
>> But doesn't this belong to git_commit_config(), not
>> git_STATUS_config()?  Should "commit.verbose" make output from "git
>> status" verbose?
>
> True. It should belong to git_commit_config(). My bad. But
> surprisingly this code works. I have no idea why. I will update the
> Patch and I have also finished writing test so I will include that
> also.

If that is surprising to you, that indicates that you only tested "commit" and not "status", I think. If you choose commit.verbose to apply only to "commit", but not "status", then your test should cover both commands, i.e. when the configuration is set to true, the default verbosity level for "git commit" should be raised, and the verbosity level for "git status" should not be--both must be verified in your test script.

Previous: Pranit BauvaNext: Pranit Bauva
Message 5 of 6 in “add a commit.verbose config variable”
  1. add a commit.verbose config variablePranit Bauva, Mar 10, 2016
  2. Pranit BauvaMar 10, 2016
  3. Junio C HamanoMar 10, 2016
  4. Pranit BauvaMar 10, 2016
  5. Junio C HamanoMar 10, 2016
  6. Pranit BauvaMar 10, 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.