Skip to contentSkip to conversation

doc: remove confusing command to send patch

PATCH In review Thomas Monjalon 6 participants 13 messages Oct 10, 2023 – Nov 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: remove confusing command to send patch

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

---
 doc/guides/contributing/patches.rst | 4 ----
 1 file changed, 4 deletions(-)
doc/guides/contributing/patches.rst +0 -4
index e286d9e6d5..d114ceba2b 100644
@@ -561,10 +561,6 @@ Script ``get-maintainer.sh`` can be used to select maintainers automatically::
 
   git send-email --to-cmd ./devtools/get-maintainer.sh --cc [email protected] 000*.patch
 
-New additions can be sent without a maintainer::
-
-   git send-email --to [email protected] 000*.patch
-
 You can test the emails by sending it to yourself or with the ``--dry-run`` option.
 
 If the patch is in relation to a previous email thread you can add it to the same thread using the Message ID::
Signature · 1 line
2.42.0
Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Thomas Monjalon

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

---
 doc/guides/contributing/patches.rst | 4 ----
 1 file changed, 4 deletions(-)
doc/guides/contributing/patches.rst +0 -4
index e286d9e6d5..d114ceba2b 100644
@@ -561,10 +561,6 @@ Script ``get-maintainer.sh`` can be used to select maintainers automatically::
 
   git send-email --to-cmd ./devtools/get-maintainer.sh --cc [email protected] 000*.patch
 
-New additions can be sent without a maintainer::
-
-   git send-email --to [email protected] 000*.patch
-
 You can test the emails by sending it to yourself or with the ``--dry-run`` option.
 
 If the patch is in relation to a previous email thread you can add it to the same thread using the Message ID::
#2 lore raw
In reply to Thomas Monjalon
Quoted 8 lines · Thomas Monjalon

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch

In this case, it translates to an empty To: list if you follow the example command line:
git send-email --to-cmd ./devtools/get-maintainer.sh --cc
[email protected] 000*.patch

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Signature · 1 line
David Marchand
#3 lore raw

11/10/2023 09:30, David Marchand:

Quoted 23 lines · Thomas Monjalon
Quoted 8 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch
Quoted 8 lines

In this case, it translates to an empty To: list if you follow the example command line:

   git send-email --to-cmd ./devtools/get-maintainer.sh --cc

[email protected] 000*.patch

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

#4 lore raw
Quoted 29 lines · Thomas Monjalon

11/10/2023 09:30, David Marchand:

Quoted 28 lines · Thomas Monjalon
Quoted 8 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch

In this case, it translates to an empty To: list if you follow the example command line:

   git send-email --to-cmd ./devtools/get-maintainer.sh --cc

[email protected] 000*.patch

Quoted 8 lines
Quoted 3 lines

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

+1 for this, mainly on the basis of it being what I do too! :-)

#5 lore raw
Quoted 34 lines · Bruce Richardson
Quoted 33 lines · Thomas Monjalon

11/10/2023 09:30, David Marchand:

Quoted 31 lines · Thomas Monjalon
Quoted 8 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch

In this case, it translates to an empty To: list if you follow the example command line:

   git send-email --to-cmd ./devtools/get-maintainer.sh --cc

[email protected] 000*.patch

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Quoted 6 lines
Quoted 4 lines

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

+1 for this, mainly on the basis of it being what I do too! :-)

I am for "--to-cmd=./devtools/get-maintainer.sh --cc [email protected]"

To highlight response is expected from the maintainers, and community is informed.

Also people may have filters to give higher priority to emails they are in 'to' list, high priority is what we want from maintainers :)

#6 lore raw

11/10/2023 10:41, Ferruh Yigit:

Quoted 42 lines · Bruce Richardson
Quoted 34 lines · Thomas Monjalon
Quoted 33 lines

11/10/2023 09:30, David Marchand:

Quoted 31 lines · Thomas Monjalon
Quoted 8 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch

In this case, it translates to an empty To: list if you follow the example command line:

   git send-email --to-cmd ./devtools/get-maintainer.sh --cc

[email protected] 000*.patch

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Quoted 6 lines
Quoted 4 lines

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

+1 for this, mainly on the basis of it being what I do too! :-)

Quoted 7 lines

I am for "--to-cmd=./devtools/get-maintainer.sh --cc [email protected]"

To highlight response is expected from the maintainers, and community is informed.

Also people may have filters to give higher priority to emails they are in 'to' list, high priority is what we want from maintainers :)

They should give high priority when they are Cc as well.

The problem is that we may have patches with empty "To", especially for cover letters and new libs.

#7 lore raw
Quoted 48 lines · Thomas Monjalon

11/10/2023 10:41, Ferruh Yigit:

Quoted 47 lines · Bruce Richardson
Quoted 34 lines · Thomas Monjalon
Quoted 33 lines

11/10/2023 09:30, David Marchand:

Quoted 31 lines · Thomas Monjalon
Quoted 8 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch

In this case, it translates to an empty To: list if you follow the example command line:

   git send-email --to-cmd ./devtools/get-maintainer.sh --cc

[email protected] 000*.patch

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Quoted 6 lines
Quoted 4 lines

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

+1 for this, mainly on the basis of it being what I do too! :-)

I am for "--to-cmd=./devtools/get-maintainer.sh --cc [email protected]"

To highlight response is expected from the maintainers, and community is informed.

Quoted 8 lines
Quoted 2 lines

Also people may have filters to give higher priority to emails they are in 'to' list, high priority is what we want from maintainers :)

They should give high priority when they are Cc as well.

The problem is that we may have patches with empty "To", especially for cover letters and new libs.

There are indeed, for those cases I am putting 'dev' to "To:".

#8 lore raw

11/10/2023 12:22, Ferruh Yigit:

Quoted 52 lines · Thomas Monjalon
Quoted 51 lines

11/10/2023 10:41, Ferruh Yigit:

Quoted 49 lines · Bruce Richardson
Quoted 34 lines · Thomas Monjalon
Quoted 33 lines

11/10/2023 09:30, David Marchand:

Quoted 31 lines · Thomas Monjalon
Quoted 8 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

I agree Cc: maintainers should be the default / recommended way of sending patches.

Just to convince myself, adding some meson skeleton for a "plop" library, adding an entry in the release notes and hooking in lib/meson.build:

$ git show --stat
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 lib/meson.build                        | 1 +
 lib/plop/meson.build                   | 2 ++
$ ./devtools/get-maintainer.sh 0001-new-awesome-library.patch

In this case, it translates to an empty To: list if you follow the example command line:

   git send-email --to-cmd ./devtools/get-maintainer.sh --cc

[email protected] 000*.patch

We could add a default list of recipients if no maintainer is found by the script.
And the next question is who should be in that list..

Quoted 6 lines
Quoted 4 lines

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

+1 for this, mainly on the basis of it being what I do too! :-)

I am for "--to-cmd=./devtools/get-maintainer.sh --cc [email protected]"

To highlight response is expected from the maintainers, and community is informed.

Also people may have filters to give higher priority to emails they are in 'to' list, high priority is what we want from maintainers :)

Quoted 6 lines
Quoted 4 lines

They should give high priority when they are Cc as well.

The problem is that we may have patches with empty "To", especially for cover letters and new libs.

There are indeed, for those cases I am putting 'dev' to "To:".

So it would be simpler to recommend a single method with maintainers as Cc.

#10 lore raw

11/10/2023 17:52, Stephen Hemminger:

Quoted 11 lines
Quoted 5 lines · On Wed, 11 Oct 2023 09:30:23 +0100 Bruce Richardson…
Quoted 4 lines

Or we can send to [email protected], Cc maintainers.
This is what I do:
git send-email --to [email protected] --cc-cmd devtools/get-maintainer.sh

+1 for this, mainly on the basis of it being what I do too! :-)

Ditto.
Maybe would be good to have alias or wrapper script?

I am convinced we should have an interactive script to send patches. I could make something using this tool:
https://github.com/tmonjalo/choose

Acked-by on v1 1/1
#11 lore raw
In reply to Thomas Monjalon
Quoted 16 lines · On Tue, 10 Oct 2023 18:26:35 +0200 Thomas Monjalon <[email protected]> wrote:

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

---
 doc/guides/contributing/patches.rst | 4 ----
 1 file changed, 4 deletions(-)
doc/guides/contributing/patches.rst +0 -0
index e286d9e6d5..d114ceba2b 100644

doc/guides/contributing/patches.rst Script ``get-maintainer.sh`` can be used to select maintainers automatically:: · line 566

Quoted 10 lines
doc/guides/contributing/patches.rst +0 -4
@@ -561,10 +561,6 @@ Script ``get-maintainer.sh`` can be used to select maintainers automatically::
 
   git send-email --to-cmd ./devtools/get-maintainer.sh --cc [email protected] 000*.patch
 
-New additions can be sent without a maintainer::
-
-   git send-email --to [email protected] 000*.patch
-
 You can test the emails by sending it to yourself or with the ``--dry-run`` option.
 
 If the patch is in relation to a previous email thread you can add it to the same thread using the Message ID::
#12 lore raw
In reply to Thomas Monjalon

10/10/2023 18:26, Thomas Monjalon:

Quoted 7 lines

In the contributor guide, it was said that no need to Cc maintainers for new additions, probably for new directories not having a maintainer. There is no harm, and it is a good habit, to always Cc maintainers.

Remove this case as it can mislead to not Cc maintainers when needed.

There was a discussion about this patch but no better solution, so applied to avoid confusion.