# [PATCH] Checklist clarifications: added "Commits", "Patch:" headings

9 messages from 2007-04-30 to 2007-05-01. Participants: Jari Aalto, Johannes Schindelin, Julian Phillips, Junio C Hamano.
Thread: https://gitlist.dev/t/7903

## Jari Aalto, 2007-04-30 11:04

Subject: [PATCH] Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <r6q2xgws.fsf@cante.net>
URL: https://gitlist.dev/e/r6q2xgws.fsf%40cante.net

```

Added email address and message 'Send your patch to...'

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 Documentation/SubmittingPatches |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 2386f49..238d410 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -1,5 +1,7 @@
 Checklist (and a short version for the impatient):
 
+	Commits:
+
 	- make commits of logical units
 	- check for unnecessary whitespace with "git diff --check"
 	  before committing
@@ -12,8 +14,13 @@ Checklist (and a short version for the impatient):
 	  commit message (or just use the option "-s" when
 	  committing) to confirm that you agree to the Developer's
 	  Certificate of Origin
+
+	Patch:
+
+	- send your patch to <git@vger.kernel.org> by using
+	  git-format-patch(1) with option "-M". See also
+	  git-send-email(1).
 	- do not PGP sign your patch
-	- use "git format-patch -M" to create the patch
 	- do not attach your patch, but read in the mail
 	  body, unless you cannot teach your mailer to
 	  leave the formatting of the patch alone.
-- 
1.5.1.2.GIT

```

## Johannes Schindelin, 2007-04-30 11:36

Subject: Re: [PATCH] Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <Pine.LNX.4.64.0704301333400.29859@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0704301333400.29859%40racer.site
In-Reply-To: <r6q2xgws.fsf@cante.net>

```
Hi,

On Mon, 30 Apr 2007, Jari Aalto wrote:

> +	- send your patch to <git@vger.kernel.org> by using
> +	  git-format-patch(1) with option "-M". See also
> +	  git-send-email(1).
>  	- do not PGP sign your patch
> -	- use "git format-patch -M" to create the patch

NACK.

I never use send-email myself. There are even technical issues to my 
excuse: sometimes I cannot send the mails from my machine. So, this should 
not be a _replacement_ for `git format-patch -M && send mail manually`, 
but only an _alternative_.

However, my impression was that many people had problems when first 
sending patches with send-email. There should be _at least_ a word of 
caution, that you should test the operation on something different than 
the Git list first.

Ciao,
Dscho

```

## Jari Aalto, 2007-04-30 12:02

Subject: Re: [PATCH] Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <abwqxe6t.fsf@cante.net>
URL: https://gitlist.dev/e/abwqxe6t.fsf%40cante.net
In-Reply-To: <Pine.LNX.4.64.0704301333400.29859@racer.site>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> Hi,
>
> On Mon, 30 Apr 2007, Jari Aalto wrote:
>
>> +	- send your patch to <git@vger.kernel.org> by using
>> +	  git-format-patch(1) with option "-M". See also
>> +	  git-send-email(1).
>>  	- do not PGP sign your patch
>> -	- use "git format-patch -M" to create the patch
>
> NACK.
>
> I never use send-email myself. There are even technical issues to my 
> excuse: sometimes I cannot send the mails from my machine. So, this should 
> not be a _replacement_ for `git format-patch -M && send mail manually`, 
> but only an _alternative_.
>
> However, my impression was that many people had problems when first 
> sending patches with send-email. There should be _at least_ a word of 
> caution, that you should test the operation on something different than 
> the Git list first.

Is this workding okay?

        - send your patch to <git@vger.kernel.org> by using
          git-format-patch(1) with option "-M". If you use  
          git-send-email(1), please test it first by sending 
          email to yourself.

Jari

```

## Julian Phillips, 2007-04-30 12:09

Subject: Re: [PATCH] Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <Pine.LNX.4.64.0704301306340.2279@reaper.quantumfyre.co.uk>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0704301306340.2279%40reaper.quantumfyre.co.uk
In-Reply-To: <abwqxe6t.fsf@cante.net>

```
On Mon, 30 Apr 2007, Jari Aalto wrote:

> Is this workding okay?
>
>        - send your patch to <git@vger.kernel.org> by using
>          git-format-patch(1) with option "-M". If you use
>          git-send-email(1), please test it first by sending
>          email to yourself.

I don't want to seem picky, but that wording suggests to me that the -M 
option to format-patch magically sends patches to the list.  Why not just 
have:

 	- use "git format-patch -M" to create the patch
 	- send your patch to <git@vger.kernel.org>. If you use
 	  git-send-email(1), please test it first by sending
 	  email to yourself.

-- 
Julian

  ---
My mother loved children -- she would have given anything if I had been one.
 		-- Groucho Marx

```

## Johannes Schindelin, 2007-04-30 12:42

Subject: Re: [PATCH] Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <Pine.LNX.4.64.0704301442240.29859@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0704301442240.29859%40racer.site
In-Reply-To: <Pine.LNX.4.64.0704301306340.2279@reaper.quantumfyre.co.uk>

```
Hi,

On Mon, 30 Apr 2007, Julian Phillips wrote:

> On Mon, 30 Apr 2007, Jari Aalto wrote:
> 
> > Is this workding okay?
> > 
> >        - send your patch to <git@vger.kernel.org> by using
> >          git-format-patch(1) with option "-M". If you use
> >          git-send-email(1), please test it first by sending
> >          email to yourself.
> 
> I don't want to seem picky, but that wording suggests to me that the -M
> option to format-patch magically sends patches to the list.  Why not just
> have:
> 
> 	- use "git format-patch -M" to create the patch
> 	- send your patch to <git@vger.kernel.org>. If you use
> 	  git-send-email(1), please test it first by sending
> 	  email to yourself.

Yes, I like that much better!

Thank you,
Dscho

```

## Jari Aalto, 2007-04-30 16:04

Subject: Re: [PATCH] v2: Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <y7k9x306.fsf_-_@cante.net>
URL: https://gitlist.dev/e/y7k9x306.fsf_-_%40cante.net
In-Reply-To: <Pine.LNX.4.64.0704301306340.2279@reaper.quantumfyre.co.uk>

```

>From e65853b7bede747912a51fd77d5cf62fb255b116 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Mon, 30 Apr 2007 18:57:25 +0300
Subject: [PATCH] Checklist clarifications: added Commits, Patch: headings

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 This is version 2 of the orignal patch. Corrected according
 to Julian Phillips's comments.

 Documentation/SubmittingPatches |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 2386f49..6a4da2d 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -1,5 +1,7 @@
 Checklist (and a short version for the impatient):
 
+	Commits:
+
 	- make commits of logical units
 	- check for unnecessary whitespace with "git diff --check"
 	  before committing
@@ -12,8 +14,14 @@ Checklist (and a short version for the impatient):
 	  commit message (or just use the option "-s" when
 	  committing) to confirm that you agree to the Developer's
 	  Certificate of Origin
-	- do not PGP sign your patch
+
+	Patch:
+
 	- use "git format-patch -M" to create the patch
+	- send your patch to <git@vger.kernel.org>. If you use
+	  git-send-email(1), please test it first by sending
+	  email to yourself.
+	- do not PGP sign your patch
 	- do not attach your patch, but read in the mail
 	  body, unless you cannot teach your mailer to
 	  leave the formatting of the patch alone.
-- 
1.5.1.2.GIT

```

## Junio C Hamano, 2007-04-30 21:00

Subject: [PATCH] send-email: add a few config variables.
Message-ID: <7vzm4pbmsp.fsf_-_@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vzm4pbmsp.fsf_-_%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0704301333400.29859@racer.site>

```
This adds from, to, suppressfrom and nosignedoffcc configuration
variables to git-send-email, so that these common options do not
have to be given from the command line all the time.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---

 * I do not use send-email myself that often, but it irritated
   me enough that there do not seem to be a way to set these
   common things in the configuration.  Maybe I was missing
   something obvious and this patch is not needed.  I dunno.

 Documentation/git-send-email.txt |   17 +++++++++++++++++
 git-send-email.perl              |   30 +++++++++++++++++++++++++-----
 2 files changed, 42 insertions(+), 5 deletions(-)

diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 795db87..3435b8c 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -119,6 +119,23 @@ sendemail.chainreplyto::
 	Boolean value specifying the default to the '--chain_reply_to'
 	parameter.
 
+sendemail.fromme::
+	Boolean; when set, use your authorname and authoremail
+	(typically found in `.git/config` as user.name and
+	user.email variables) if `--from` option is not given.
+
+sendemail.to::
+	When `--to` is not specified on the command line, use
+	this address instead.
+
+sendemail.suppressfrom::
+	Boolean; when set, act as if `--suppress-from` is given
+	on the command line.
+
+sendemail.nosignedoffcc::
+	Boolean; when set, act as if `--no-signed-off-cc` is
+	given on the command line.
+
 sendemail.smtpserver::
 	Default smtp server to use.
 
diff --git a/git-send-email.perl b/git-send-email.perl
index a6e3e02..785fb75 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -164,6 +164,18 @@ if (!@bcclist or !$bcclist[0]) {
     @bcclist = ();
 }
 
+my $fromme;
+
+for my $ent (['fromme', \$fromme],
+	     ['suppressfrom', \$suppress_from],
+	     ['nosignedoffcc', \$no_signed_off_cc]) {
+	my $val = $repo->config_boolean('sendemail.' . $ent->[0]);
+	my $var = $ent->[1];
+	${$var} = (! ($val && $val eq 'false'));
+}
+
+my $default_to = $repo->config('sendmail.to');
+
 # Begin by accumulating all the variables (defined above), that we will end up
 # needing, first, from the command line:
 
@@ -187,6 +199,19 @@ unless ($rc) {
     usage();
 }
 
+# Now, let's fill any that aren't set in with defaults:
+
+my ($author) = $repo->ident_person('author');
+my ($committer) = $repo->ident_person('committer');
+
+if ($fromme && !defined $from) {
+	$from = $author;
+}
+
+if (!@to && $default_to ne '') {
+	push @to, $default_to;
+}
+
 # Verify the user input
 
 foreach my $entry (@to) {
@@ -201,11 +226,6 @@ foreach my $entry (@bcclist) {
 	die "Comma in --bcclist entry: $entry'\n" unless $entry !~ m/,/;
 }
 
-# Now, let's fill any that aren't set in with defaults:
-
-my ($author) = $repo->ident_person('author');
-my ($committer) = $repo->ident_person('committer');
-
 my %aliases;
 my @alias_files = $repo->config('sendemail.aliasesfile');
 my $aliasfiletype = $repo->config('sendemail.aliasfiletype');
-- 
1.5.2.rc0.781.g5868

```

## Junio C Hamano, 2007-04-30 23:35

Subject: Re: [PATCH] v2: Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <7vejm1bflk.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vejm1bflk.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <y7k9x306.fsf_-_@cante.net>

```
Jari Aalto <jari.aalto@cante.net> writes:

> From e65853b7bede747912a51fd77d5cf62fb255b116 Mon Sep 17 00:00:00 2001
> From: Jari Aalto <jari.aalto@cante.net>
> Date: Mon, 30 Apr 2007 18:57:25 +0300
> Subject: [PATCH] Checklist clarifications: added Commits, Patch: headings
>
> Signed-off-by: Jari Aalto <jari.aalto@cante.net>
> ---
>  This is version 2 of the orignal patch. Corrected according
>  to Julian Phillips's comments.

The first one was well formatted, but this one is not quite.

Do not have "v2" outside of "[PATCH ...]".

I'll apply it by hand as the text itself feels an improvement.

Thanks.

```

## Junio C Hamano, 2007-05-01 04:11

Subject: Re: [PATCH] Checklist clarifications: added "Commits", "Patch:" headings
Message-ID: <7vslah89oi.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vslah89oi.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0704301333400.29859@racer.site>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> However, my impression was that many people had problems when first 
> sending patches with send-email. There should be _at least_ a word of 
> caution, that you should test the operation on something different than 
> the Git list first.

Also an EXAMPLES section to Documentation/git-send-email.txt
would be useful.

```
