Skip to content

Commit 07410bb

Browse files
committed
Merge branch 'la/doc-use-of-contacts-when-contributing'
Advertise "git contacts", a tool for newcomers to find people to ask review for their patches, a bit more in our developer documentation. * la/doc-use-of-contacts-when-contributing: SubmittingPatches: demonstrate using git-contacts with git-send-email SubmittingPatches: add heading for format-patch and send-email SubmittingPatches: dedupe discussion of security patches SubmittingPatches: discuss reviewers first SubmittingPatches: quote commands SubmittingPatches: mention GitGitGadget SubmittingPatches: clarify 'git-contacts' location MyFirstContribution: mention contrib/contacts/git-contacts
2 parents 90f6b5a + 61e124b commit 07410bb

File tree

2 files changed

+51
-30
lines changed

2 files changed

+51
-30
lines changed

Documentation/MyFirstContribution.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,15 @@ $ git send-email [email protected] psuh/*.patch
11161116
NOTE: Check `git help send-email` for some other options which you may find
11171117
valuable, such as changing the Reply-to address or adding more CC and BCC lines.
11181118

1119+
:contrib-scripts: footnoteref:[contrib-scripts,Scripts under `contrib/` are +
1120+
not part of the core `git` binary and must be called directly. Clone the Git +
1121+
codebase and run `perl contrib/contacts/git-contacts`.]
1122+
1123+
NOTE: If you're not sure whom to CC, running `contrib/contacts/git-contacts` can
1124+
list potential reviewers. In addition, you can do `git send-email
1125+
--cc-cmd='perl contrib/contacts/git-contacts' feature/*.patch`{contrib-scripts} to
1126+
automatically pass this list of emails to `send-email`.
1127+
11191128
NOTE: When you are sending a real patch, it will go to [email protected] - but
11201129
please don't send your patchset from the tutorial to the real mailing list! For
11211130
now, you can send it to yourself, to make sure you understand how it will look.

Documentation/SubmittingPatches

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -397,17 +397,57 @@ letter.
397397
[[send-patches]]
398398
=== Sending your patches.
399399

400+
==== Choosing your reviewers
401+
400402
:security-ml: footnoteref:[security-ml,The Git Security mailing list: [email protected]]
401403

402-
Before sending any patches, please note that patches that may be
404+
NOTE: Patches that may be
403405
security relevant should be submitted privately to the Git Security
404406
mailing list{security-ml}, instead of the public mailing list.
405407

406-
Learn to use format-patch and send-email if possible. These commands
408+
:contrib-scripts: footnoteref:[contrib-scripts,Scripts under `contrib/` are +
409+
not part of the core `git` binary and must be called directly. Clone the Git +
410+
codebase and run `perl contrib/contacts/git-contacts`.]
411+
412+
Send your patch with "To:" set to the mailing list, with "cc:" listing
413+
people who are involved in the area you are touching (the `git-contacts`
414+
script in `contrib/contacts/`{contrib-scripts} can help to
415+
identify them), to solicit comments and reviews. Also, when you made
416+
trial merges of your topic to `next` and `seen`, you may have noticed
417+
work by others conflicting with your changes. There is a good possibility
418+
that these people may know the area you are touching well.
419+
420+
If you are using `send-email`, you can feed it the output of `git-contacts` like
421+
this:
422+
423+
....
424+
git send-email --cc-cmd='perl contrib/contacts/git-contacts' feature/*.patch
425+
....
426+
427+
:current-maintainer: footnote:[The current maintainer: [email protected]]
428+
:git-ml: footnote:[The mailing list: [email protected]]
429+
430+
After the list reached a consensus that it is a good idea to apply the
431+
patch, re-send it with "To:" set to the maintainer{current-maintainer}
432+
and "cc:" the list{git-ml} for inclusion. This is especially relevant
433+
when the maintainer did not heavily participate in the discussion and
434+
instead left the review to trusted others.
435+
436+
Do not forget to add trailers such as `Acked-by:`, `Reviewed-by:` and
437+
`Tested-by:` lines as necessary to credit people who helped your
438+
patch, and "cc:" them when sending such a final version for inclusion.
439+
440+
==== `format-patch` and `send-email`
441+
442+
Learn to use `format-patch` and `send-email` if possible. These commands
407443
are optimized for the workflow of sending patches, avoiding many ways
408444
your existing e-mail client (often optimized for "multipart/*" MIME
409445
type e-mails) might render your patches unusable.
410446

447+
NOTE: Here we outline the procedure using `format-patch` and
448+
`send-email`, but you can instead use GitGitGadget to send in your
449+
patches (see link:MyFirstContribution.html[MyFirstContribution]).
450+
411451
People on the Git mailing list need to be able to read and
412452
comment on the changes you are submitting. It is important for
413453
a developer to be able to "quote" your changes, using standard
@@ -498,34 +538,6 @@ patch, format it as "multipart/signed", not a text/plain message
498538
that starts with `-----BEGIN PGP SIGNED MESSAGE-----`. That is
499539
not a text/plain, it's something else.
500540

501-
:security-ml-ref: footnoteref:[security-ml]
502-
503-
As mentioned at the beginning of the section, patches that may be
504-
security relevant should not be submitted to the public mailing list
505-
mentioned below, but should instead be sent privately to the Git
506-
Security mailing list{security-ml-ref}.
507-
508-
Send your patch with "To:" set to the mailing list, with "cc:" listing
509-
people who are involved in the area you are touching (the `git
510-
contacts` command in `contrib/contacts/` can help to
511-
identify them), to solicit comments and reviews. Also, when you made
512-
trial merges of your topic to `next` and `seen`, you may have noticed
513-
work by others conflicting with your changes. There is a good possibility
514-
that these people may know the area you are touching well.
515-
516-
:current-maintainer: footnote:[The current maintainer: [email protected]]
517-
:git-ml: footnote:[The mailing list: [email protected]]
518-
519-
After the list reached a consensus that it is a good idea to apply the
520-
patch, re-send it with "To:" set to the maintainer{current-maintainer}
521-
and "cc:" the list{git-ml} for inclusion. This is especially relevant
522-
when the maintainer did not heavily participate in the discussion and
523-
instead left the review to trusted others.
524-
525-
Do not forget to add trailers such as `Acked-by:`, `Reviewed-by:` and
526-
`Tested-by:` lines as necessary to credit people who helped your
527-
patch, and "cc:" them when sending such a final version for inclusion.
528-
529541
== Subsystems with dedicated maintainers
530542

531543
Some parts of the system have dedicated maintainers with their own

0 commit comments

Comments
 (0)