From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Pranit Bauva <pranit.bauva@zoho.com>
Cc: Git Mailing List <git@vger.kernel.org>, Jeff King <peff@peff.net>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Stefan Beller <sbeller@google.com>,
Christian Couder <christian.couder@gmail.com>,
Lars Schneider <larsxschneider@gmail.com>
Subject: Re: [PATCH/RFC] git-commit: add a commit.verbose config variable
Date: Thu, 25 Feb 2016 22:27:00 +0100 [thread overview]
Message-ID: <vpqmvqo1nx7.fsf@anie.imag.fr> (raw)
In-Reply-To: <56CFBF19.6040004@zoho.com> (Pranit Bauva's message of "Fri, 26 Feb 2016 02:57:29 +0000")
Pranit Bauva <pranit.bauva@zoho.com> writes:
> From c273a02fc9cab9305cedf6e37422e257a1cc3b1e Mon Sep 17 00:00:00 2001
> From: Pranit Bauva <pranit.bauva@zoho.com>
> Date: Fri, 26 Feb 2016 07:14:18 +0530
> Subject: [PATCH/RFC] git-commit: add a commit.verbose config variable
These should not appear in the body of your message, but they should be
the actual headers of your email. Try sending such message to yourself,
and compare with what you see on the list.
Using "git send-email" normally does the right thing. You may want to
look at https://submitgit.herokuapp.com/ too.
> The variable `verbose` is changed instead of `s.verbose` as the method
> run_status() updates the `s.verbose` with the value of `verbose`. So in
> this way the change is reflected in both of them.
The commit message should not try to rephrase what the patch aleady
says.
> This is a patch for the microproject of GSOC 2016. I have done the change
> under careful consideration of where to place the line. I have to yet write
> the tests for this.
If you know you haven't finished, you may use WIP (work in progress)
instead of RFC in the title.
> +commit.verbose::
> + A boolean to specify whether to always include the verbose option
Boolean is usually written with a capital letter.
> + with git-config.
Did you mean "git commit"?
> + of the commit message. If this option is used always, it can
"If this option is used always" does not sound right. I'd write "To
activate this option permanently, ..."
> + be set in the git-config with the boolean variable `commit.verbose`.
"the git-config" is not proper English. You mean "a configuration file".
I'd write "the configuration variable `commit.verbose` can be set to
true".
> --- a/builtin/commit.c
> +++ b/builtin/commit.c
> @@ -1644,6 +1644,8 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
> status_format = STATUS_FORMAT_NONE; /* Ignore status.short */
> s.colopts = 0;
>
> + git_config_get_bool("commit.verbose", &verbose);
Doesn't this override any value that --verbose or --no-verbose may have
set before?
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next prev parent reply other threads:[~2016-02-25 21:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-26 2:57 [PATCH/RFC] git-commit: add a commit.verbose config variable Pranit Bauva
2016-02-25 21:27 ` Matthieu Moy [this message]
2016-02-25 21:58 ` Stefan Beller
2016-02-26 3:00 ` Eric Sunshine
2016-02-26 13:26 ` Pranit Bauva
2016-02-26 16:56 ` Junio C Hamano
2016-02-26 17:32 ` Matthieu Moy
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=vpqmvqo1nx7.fsf@anie.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=Johannes.Schindelin@gmx.de \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=larsxschneider@gmail.com \
--cc=peff@peff.net \
--cc=pranit.bauva@zoho.com \
--cc=sbeller@google.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;
as well as URLs for NNTP newsgroup(s).