Merge branch 'sb/doc-submitting-patches-keep-notes'
authorJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2015 19:38:54 +0000 (11:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2015 19:38:55 +0000 (11:38 -0800)
* sb/doc-submitting-patches-keep-notes:
SubmittingPatches: explain rationale for using --notes with format-patch

1  2 
Documentation/SubmittingPatches
index 16d5d2be0880621741e7100e3cd87fdfb8fd5f38,85bc071ae7f94a8965ff68ebd43b6a032d749a8d..ef0eeb40cd225925b1cd034221c426eea1c88f1b
@@@ -57,8 -57,7 +57,8 @@@ change, the approach taken by the chang
  differs substantially from the prior version, are all good things
  to have.
  
 -Make sure that you have tests for the bug you are fixing.
 +Make sure that you have tests for the bug you are fixing.  See
 +t/README for guidance.
  
  When adding a new feature, make sure that you have new tests to show
  the feature triggers the new behaviour when it should, and to show the
@@@ -176,8 -175,11 +176,11 @@@ message starts, you can put a "From: " 
  
  You often want to add additional explanation about the patch,
  other than the commit message itself.  Place such "cover letter"
- material between the three dash lines and the diffstat. Git-notes
- can also be inserted using the `--notes` option.
+ material between the three-dash line and the diffstat.  For
+ patches requiring multiple iterations of review and discussion,
+ an explanation of changes between each iteration can be kept in
+ Git-notes and inserted automatically following the three-dash
+ line via `git format-patch --notes`.
  
  Do not attach the patch as a MIME attachment, compressed or not.
  Do not let your e-mail client send quoted-printable.  Do not let
@@@ -255,15 -257,15 +258,15 @@@ pretty simple: if you can certify the b
              person who certified (a), (b) or (c) and I have not modified
              it.
  
 -      (d) I understand and agree that this project and the contribution
 -          are public and that a record of the contribution (including all
 -          personal information I submit with it, including my sign-off) is
 -          maintained indefinitely and may be redistributed consistent with
 -          this project or the open source license(s) involved.
 +        (d) I understand and agree that this project and the contribution
 +            are public and that a record of the contribution (including all
 +            personal information I submit with it, including my sign-off) is
 +            maintained indefinitely and may be redistributed consistent with
 +            this project or the open source license(s) involved.
  
  then you just add a line saying
  
 -      Signed-off-by: Random J Developer <random@developer.example.org>
 +        Signed-off-by: Random J Developer <random@developer.example.org>
  
  This line can be automatically added by Git if you run the git-commit
  command with the -s option.