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

Re: commit: support commit.verbose and --no-verbose

From
Duy Nguyen <pclouds@gmail.com>
Date
May 24, 2014, 09:25 UTC
Message-ID
<CACsJy8C6Ff-wUvwhrT0y6F2rnqwaYByxxFF_8A7rvKTdZn199g@mail.gmail.com>
In-Reply-To
<20140523212222.GA10412@sirius.local>
On Sat, May 24, 2014 at 4:22 AM, Caleb Thompson <cjaysson@gmail.com> wrote:
> This patch allows people to set `commit.verbose` to implicitly send `--verbose`
> to `git commit`. It also introduces `--no-verbose` to override the configuration
> setting.
The code change looks fine to me (no opinion if we should do this though).
Show 11 quoted lines
> --- a/Documentation/git-commit.txt
> +++ b/Documentation/git-commit.txt
> @@ -282,7 +282,14 @@ configuration variable documented in linkgit:git-config[1].
>         Show unified diff between the HEAD commit and what
>         would be committed at the bottom of the commit message
>         template.  Note that this diff output doesn't have its
> -       lines prefixed with '#'.
> +       lines prefixed with '#'.  The `commit.verbose` configuration
> +       variable can be set to true to implicitly send this option.
> +
> +-V::
No, I don't think -V is the negative form of -v if you use OPT_BOOL().
> +--no-verbose::
> +       Do not show the unified diff  at the bottom of the commit message
> +       template.  This is the default behavior, but can be used to override
> +       the`commit.verbose` configuration variable.
-- 
Duy
Previous: Junio C Hamano
Message 4 of 4 in “commit: support commit.verbose and --no-verbose”
  1. Caleb ThompsonMay 23, 2014
  2. Jeremiah MahlerMay 24, 2014
  3. Junio C HamanoMay 27, 2014
  4. Duy NguyenMay 24, 2014

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.