On Sun, 25 Aug 2019, Thomas Gleixner wrote: > On Sat, 24 Aug 2019, Theodore Y. Ts'o wrote: > > I use quilt for processing incoming changes for ext4 as well; would > > you mind sharing your script? This sounds like it would be really > > useful for me. > > Sure. Give me a day or two to make it less embarrassing by removing the > duct tape it grew over time. :) So I found some spare time and refactored the pile to something halfways sane. Real snake programmers will probably still run away screaming :) Right now there is only the mb2q utility in there, but I want to add some more of my stuff over time. During the rework I switched it over to python3 only as I now use some of the new pyhton3 only email conveniance functionality. email is a pain in general but even more so in python2. The tool is a standalone script and requires only python3-yaml which should be packaged on most distros. To make this even useful for non quilt users, I added a command line option which allows to create a mailbox instead of a quilt series. The resulting mailbox is formatted in the same way as the quilt series with tags collected, etc. That generate mailbox can be directly applied with git-am. For details see the man page / html documentation. It's not perfect, but it works for the usual patch submission mail threads. I occacionally have to do some manual fixup for special cases, but I can't be bothered to automate them further. Documentation/examples has a template for a config file, but mb2q has (hopefully) sane defaults and should even work without. But the config file can be used to do customization especially if you deal with different lists and projects. You can have multiple and override the default location on the command line. As I did not get a repo set up on git.kernel.org for this yet, find attached a git bundle which allows you to clone my repo for now. That works like a regular clone $ git clone /path/to/stored/attachement/quilttools Once our helpful friends at k.org have set up the repo I asked for, I'll push it out and you can switch the origin over from the bundle. I hope this is helpful and if you find bugs, you know where to send the patches to :) Thanks, tglx