From: Junio C Hamano <gitster@pobox.com>
To: Pranit Bauva <pranit.bauva@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH/RFC v3] add a commit.verbose config variable
Date: Thu, 10 Mar 2016 13:34:24 -0800 [thread overview]
Message-ID: <xmqq7fhadnkv.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <0102015361e5441b-bbc448b5-7307-451d-a951-f016f7ae4b1d-000000@eu-west-1.amazonses.com> (Pranit Bauva's message of "Thu, 10 Mar 2016 18:58:48 +0000")
Pranit Bauva <pranit.bauva@gmail.com> writes:
> diff --git a/builtin/commit.c b/builtin/commit.c
> index b3bd2d4..63ee0f2 100644
> --- a/builtin/commit.c
> +++ b/builtin/commit.c
> @@ -1310,6 +1310,10 @@ static int git_status_config(const char *k, const char *v, void *cb)
> return error(_("Invalid untracked files mode '%s'"), v);
> return 0;
> }
> + if (!strcmp(k, "commit.verbose")) {
> + verbose = git_config_bool(k, v);
> + return 0;
> + }
> return git_diff_ui_config(k, v, NULL);
> }
Checking the code flow in cmd_commit(), we first do the config, and
then later call parse_options(), so it is clear that giving the
initial value of 0 or 1 depending on the boolean setting would be
all that is necessary to support "--no-verbose", which makes the
patch very compact. Good.
But doesn't this belong to git_commit_config(), not
git_STATUS_config()? Should "commit.verbose" make output from "git
status" verbose?
next prev parent reply other threads:[~2016-03-10 21:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 18:58 [PATCH/RFC v3] add a commit.verbose config variable Pranit Bauva
2016-03-10 19:46 ` Pranit Bauva
2016-03-10 21:34 ` Junio C Hamano [this message]
2016-03-10 21:38 ` Pranit Bauva
2016-03-10 21:46 ` Junio C Hamano
2016-03-10 21:49 ` Pranit Bauva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq7fhadnkv.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pranit.bauva@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox