devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Add add-maintainer.py script
@ 2023-08-03  8:23 Guru Das Srinagesh
  2023-08-03  8:23 ` [PATCH v2 1/1] scripts: Add add-maintainer.py Guru Das Srinagesh
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Guru Das Srinagesh @ 2023-08-03  8:23 UTC (permalink / raw)
  To: Masahiro Yamada, Nick Desaulniers, Andrew Morton, Nicolas Schier,
	Kees Cook, Bjorn Andersson, robh+dt, krzysztof.kozlowski+dt,
	Will Deacon, Greg Kroah-Hartman, quic_pkondeti, u.kleine-koenig
  Cc: linux-kernel, devicetree, linux-arm-msm, linux-arm-kernel,
	linux-pm, Guru Das Srinagesh

When pushing patches to upstream, the `get_maintainer.pl` script is used to
determine whom to send the patches to. Instead of having to manually process
the output of the script, add a wrapper script to do that for you.

The add-maintainer.py script adds maintainers (and mailing lists) to a patch,
editing it in-place.

Thanks to Bjorn for being a sounding board to this idea and for his valuable
suggestions.

Please try out this script with `--verbosity debug` for verifying that it's
doing "the right thing". I've tested this with a patch series from various
subsystems to ensure variety of maintainers and lists output and found it to be
doing what it is supposed to do.

I referred to the following links during development of this script:
- https://stackoverflow.com/questions/4427542/how-to-do-sed-like-text-replace-with-python
- https://stackoverflow.com/questions/4146009/python-get-list-indexes-using-regular-expression
- https://stackoverflow.com/questions/10507230/insert-line-at-middle-of-file-with-python

v1 -> v2:
- Added set-union logic based on Pavan's comments [1] and Bjorn's early suggestion
- Expanded audience and added more mailing lists to get more review comments and feedback

[1] https://lore.kernel.org/lkml/63764b84-3ebd-4081-836f-4863af196228@quicinc.com/

Guru Das Srinagesh (1):
  scripts: Add add-maintainer.py

 scripts/add-maintainer.py | 113 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 113 insertions(+)
 create mode 100755 scripts/add-maintainer.py

-- 
2.40.0


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-08-27  5:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  8:23 [PATCH v2 0/1] Add add-maintainer.py script Guru Das Srinagesh
2023-08-03  8:23 ` [PATCH v2 1/1] scripts: Add add-maintainer.py Guru Das Srinagesh
2023-08-03  9:04   ` Pavan Kondeti
2023-08-10 18:52     ` Guru Das Srinagesh
2023-08-23 15:14   ` Nicolas Schier
2023-08-24 21:44     ` Guru Das Srinagesh
2023-08-25 11:44       ` Nicolas Schier
2023-08-25 17:00         ` Guru Das Srinagesh
2023-08-27  5:52           ` Nicolas Schier
2023-08-03  9:16 ` [PATCH v2 0/1] Add add-maintainer.py script Neil Armstrong
2023-08-10 18:49   ` Guru Das Srinagesh
2023-08-19  2:23     ` Guru Das Srinagesh
2023-08-10 18:55 ` Guru Das Srinagesh
2023-08-15 21:06   ` Krzysztof Kozlowski
2023-08-16 17:15     ` Guru Das Srinagesh
2023-08-18  8:33       ` Neil Armstrong
2023-08-19  1:48         ` Guru Das Srinagesh
2023-08-18  8:43       ` Krzysztof Kozlowski
2023-08-18 19:46         ` Bjorn Andersson
2023-08-19  7:50           ` Krzysztof Kozlowski
2023-08-19  1:33         ` Guru Das Srinagesh
2023-08-19  7:53           ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).