From: Junio C Hamano <gitster@pobox.com>
To: Stefan Beller <sbeller@google.com>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [RFC PATCH] format-patch: Add config option format.coverbodytext to change the cover letter body
Date: Tue, 06 Jan 2015 10:57:07 -0800 [thread overview]
Message-ID: <xmqqd26rpwjg.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <CAGZ79kabhx1q2pxY0_UXAy64G94GQZaP4nSUgeUjV0c_sjt+QQ@mail.gmail.com> (Stefan Beller's message of "Tue, 6 Jan 2015 10:08:46 -0800")
Stefan Beller <sbeller@google.com> writes:
> The disadvantage is that I need to have the high quality in a branch before
> sending it out for review. But I personally find it easier to deal
> with git branches
> than with patch files of different versions. Branches do not forget
> anything once
> I edited it in which turns that point into an advantage for me.
> ...
> But how do I know if a patch is perfect?
You said it yourself above, didn't you? While perfecting your
branch and while perfecting reroll of your branch.
>> Perhaps --add-header="x-reminder: what changed since the last?"
>> would be sufficient for your purpose instead?
>
> I am not quite sure if that is my problem any more. Say I have the
> following check list:
> * Do I follow the coding style?
> * indentation by tabs and spaces
> * no superfluous braces
>
> * The code itself
> * Does it embed into the current logic flow?
> * memory leaks?
> * Does it compile and test (git rebase --exec=make --exec="make test") ?
>
> * Is a patch small enough?
> * Does it do one thing? (move code or add code, not both!)
>
> * Do I have a proper commit message?
> * spelling and grammar
> * Does the commit message (still) describe the changes of the patch?
All of the above sounds like what you want to do once-per-patch, not
once-per-series, so a reminder while reviewing each individual
patch, not while writing the cover letter, would be a more
appropriate place for them, no?
> * After doing changes, wait at least 12 hours for second self-review
This is certainly once-per-series.
> * sending out:
> git format-patch --cover-letter --notes --subject-prefix=PATCHvX
This is not even helpful reminder if that is only shown after you
run format-patch, no?
> Most of it is on a per-patch basis, but it is easier to check for the whole
> branch/series in one go after some time when you found some mental
> distance to the code you wrote yourself. And for me this is usually
> the next day, when I review it again and ask myself: Do I send out or not?
>
> As you can see there may be quite some discussion on what you want
> to put into that check list, hence it should be configurable. We could of
> course think about pre-populating the check list for new comers.
Yes, but that is a separate discussion where the check list is given
(per patch or per series?) and how it is presented (overriding the
"blurb here" comment or something else that can also be used for the
non-cover messages?).
next prev parent reply other threads:[~2015-01-06 18:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 19:28 [RFC PATCH] format-patch: Add config option format.coverbodytext to change the cover letter body Stefan Beller
2015-01-06 10:37 ` Junio C Hamano
2015-01-06 18:08 ` Stefan Beller
2015-01-06 18:57 ` Junio C Hamano [this message]
2015-01-06 19:14 ` Stefan Beller
2015-01-06 22:35 ` Junio C Hamano
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=xmqqd26rpwjg.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.