git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git maintainer workflow tools?
@ 2019-07-28  7:23 Matthias Beyer
  2019-07-28 14:19 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Beyer @ 2019-07-28  7:23 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]

Hello git community,

I write this email because after several attempts over several months of
searching the internet for this, I still fail to find a proper documentation
and/or tools for the workflow. So this is my last resort.

So what I am looking for is tools to automate contributor and maintainer
workflow, especially:

1) Repliying to each emailpatch of a set of patches with
   "Reviewed-by: <user@host>" (or other trailers)

   Szenario: I see a patchset on a mailinglist. I apply this patchset to my
   local copy of the repository, review it and test it.
   I want to send "Reviewed-by" and "Tested-by" trailers for each patch.


2) Applying a set of emails as patches, where "Reviewed-by" and other trailers
   from the tree of emails are automatically included in the commit message when
   applying (how do the kernel people do this? By hand? I don't think so, do
   they?)

   Szenario: I receive a patchset for my project. Contributors have started a
   discussion on PATCH 1/3, fixup commits/squash commits were sent to the mail
   thread. After a bit of discussion, "Reviewed-by"/"Acked-by" trailers were
   sent.  I want to apply the patches, and include all trailers in the commit
   message that were sent for the corrosponding patchmail.


Fwiw, I'm using mutt as an email reader, but of course such tools can or even
should be MUA-agnostic, right?

I know about git-interpret-trailers, but I fail to see how to use them to
automate the process.

Maybe you know scripts/tools that are ready and available for accomplishing
these tasks.


-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: git maintainer workflow tools?
  2019-07-28  7:23 git maintainer workflow tools? Matthias Beyer
@ 2019-07-28 14:19 ` Theodore Y. Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Y. Ts'o @ 2019-07-28 14:19 UTC (permalink / raw)
  To: Matthias Beyer; +Cc: git

On Sun, Jul 28, 2019 at 09:23:18AM +0200, Matthias Beyer wrote:
> 
> So what I am looking for is tools to automate contributor and maintainer
> workflow, especially:
> 
> 1) Repliying to each emailpatch of a set of patches with
>    "Reviewed-by: <user@host>" (or other trailers)
> 
>    Szenario: I see a patchset on a mailinglist. I apply this patchset to my
>    local copy of the repository, review it and test it.
>    I want to send "Reviewed-by" and "Tested-by" trailers for each patch.

I have the following in my ~/.emacs.el file:

(defvar signed-off-by-address "Theodore Ts\'o <tytso@mit.edu>"
  "Address used by insert-signed-off-by")

(defun insert-signed-off-by ()
  (interactive)
  (insert (concat "Signed-off-by: " signed-off-by-address "\n")))

(defun insert-reviewed-by ()
  (interactive)
  (insert (concat "Reviewed-by: " signed-off-by-address "\n")))

(global-set-key "\^Cs" 'insert-signed-off-by)
(global-set-key "\^Cr" 'insert-reviewed-by)

If I see an e-mail on the mailing list for me to review, I may or may
not apply it to my tree depending on how complex it is to review.  But
then in the e-mail reply, I just type "^C r" to insert the Reviwed-by
tag in my e-mail response.

Typically my replies will end with something like this:

	Once you address the above comments, feel free to add:

	Reviewed-by: Theodore Ts'o <tytso@mit.edu>

Or a straight LGTM:

	Looks good, feel free to add:

	Reviewed-by: Theodore Ts'o <tytso@mit.edu>

> 
> 2) Applying a set of emails as patches, where "Reviewed-by" and other trailers
>    from the tree of emails are automatically included in the commit message when
>    applying (how do the kernel people do this? By hand? I don't think so, do
>    they?)

Patchwork will automatically include the Reviwed-by tags from the
e-mail thread.

So for example, see this patch:

	http://patchwork.ozlabs.org/patch/1064297/

If you click the series link, you'll get a Unix mbox file with all of
the patches in the patch series, complete with the tags from the
replies tagged.  (e.g, where people have replied with "Looks good,
feel free to add...")  It is suitable for application using "git am -s".

There are other tools and scripts people might use, but this is one
such workflow.

Hope this helps,

					- Ted

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

end of thread, other threads:[~2019-07-28 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-28  7:23 git maintainer workflow tools? Matthias Beyer
2019-07-28 14:19 ` Theodore Y. Ts'o

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).