Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp214931imu; Wed, 7 Nov 2018 15:57:17 -0800 (PST) X-Google-Smtp-Source: AJdET5cRZrlaaOmIPOKqbU3wOrzgryr17lSy7s4W7P7eNRT19QqHdMGE2+cNMdak9UCLciAcqRiC X-Received: by 2002:a63:c10f:: with SMTP id w15mr1967044pgf.199.1541635037370; Wed, 07 Nov 2018 15:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541635037; cv=none; d=google.com; s=arc-20160816; b=emiUVPL6eNfIqyEfhAJcud84B5DpWbjtdk5bhcLdlnCn4PiLNLDQnXtIS227AJ2td2 Ok2HNa07yMtnfJHBu5vV6zXl5dRsdB3583Bux4xbtHBv28Ea82YhiZRCjed/Lkejmfpf gO4CZLAM4JiBUZ2ndd9vm069vU/XiALdU/yyWkk5lc17ypeKFgyYLr6c8lUmJp43EhXm iABqEtrMc6BROF/brkWLudDEayxp2g46Rm+gbV1UcuyvQHWBaBg0+/raafga6vty1NPd ylCKAm9GwWBR4wfWUvZcWLna1LeetqDkCXgEeay7Kzf7RIeTZgbvZdA3dqAX1W3WMkq7 NbxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=ghtNQuzKJaqD8blAhYFEKJ2r/n5KXJmLi0kTiPkEREA=; b=bPihZ5SK8pAKeVYJoU9DCC3pzmu7MgwcojfIwPOmZeNSjol9mNjw9LbtVskkuoXSLD +ty9rawks0fdIepT5JTlls63hR+2SFK1raRdhnsEJj/Ci1rQZBYqKyD20vfd+mHSn714 hLJvMOGsL2F+1PzIPH/ZhQ3JEuFdMIGnecEktsXRSk6YfgQ5C8nluOdmQZzYmc4WWDPX dyK1WmC71nxOF3Tl/7V53rfyZ8/UQn7ekxofaMvoLZjlOMAnHT5aXKSH3Kfq8H2QstHx wwIZaapzpT9nzM5I79BXvY01HR7HXQg1JiLphZwN6hizepEiY8cc8hcil4cCtPlxQMPB 6mNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d32-v6si2281109pld.238.2018.11.07.15.56.59; Wed, 07 Nov 2018 15:57:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727990AbeKHJ3V (ORCPT + 99 others); Thu, 8 Nov 2018 04:29:21 -0500 Received: from ozlabs.org ([203.11.71.1]:50035 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbeKHJ3V (ORCPT ); Thu, 8 Nov 2018 04:29:21 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42r3Gl10Jqz9sBZ; Thu, 8 Nov 2018 10:56:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Boris Brezillon Cc: Mark Brown , Rob Herring , Linus Torvalds , kirill@shutemov.name, "Linus Walleij" , Catalin Marinas , Christoph Hellwig , Guenter Roeck , jacek.anaszewski@gmail.com, axboe@kernel.dk, "Ulf Hansson" , Greg Kroah-Hartman , Linux Kernel Mailing List Subject: Re: Git pull ack emails.. In-Reply-To: <20181107114153.187fbc25@bbrezillon> References: <20181023093521.dm3l5oen2j7etsot@kshutemo-mobl1> <20181023200408.GA13179@chatter.qube.local> <20181026211504.GG27137@sirena.org.uk> <87zhutdrt7.fsf@concordia.ellerman.id.au> <20181107114153.187fbc25@bbrezillon> Date: Thu, 08 Nov 2018 10:56:31 +1100 Message-ID: <87efbwqw5s.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Boris Brezillon writes: > Hello Michael, > > On Thu, 01 Nov 2018 21:18:28 +1100 > Michael Ellerman wrote: > >> Mark Brown writes: >> >> > On Fri, Oct 26, 2018 at 12:36:14PM -0500, Rob Herring wrote: >> >> On Thu, Oct 25, 2018 at 9:14 AM Linus Torvalds >> >> wrote: >> > >> >> > Are there other situations where you might want to track something >> >> > _outside_ of a pull request? Maybe. I can't really think of a lot of >> >> > them, though. Patches etc don't have commit ID's to track, but it >> > >> > patchwork gives them IDs and lets you do lookups using them, that's what >> > I'm doing. You can get the ID from a git commit by piping the output of >> > git show into parser.py from the patchwork source, it works a lot of the >> > time but things like editing the commit message will break it (this is a >> > theme with my scripting around the mail stuff...). >> > >> >> submissions. For example, with Greg and Mark B you can expect an >> >> automated replies. Mark's reply gets threaded with the original, but >> >> Greg's do not. For networking, you may or may not get a manual reply, >> > >> > Mine *mostly* gets threaded, it's relying on being able to talk to >> > patchwork to figure out the message ID at the minute so if the patchwork >> > lookup fails for whatever reason it'll just use on what's in the commit >> > for the CC list and not thread. That isn't ideal, especially when I'm >> > travelling and my network connection isn't the best, I keep meaning to >> > try to figure out a better way which would probably be based on git >> > notes as discussed earlier. >> >> Yeah I use git notes for this. >> >> When I apply a patch I record the patchwork id in a git note, I have a >> custom hacked pwclient that does it automatically. I also download the >> full mbox from patchwork and stash it in .git/patchwork/. >> >> Then I have everything I need to generate a properly threaded reply to >> the original mail. >> >> The git notes work well, if you add the following to your .git/config: >> >> [notes] >> rewriteRef = refs/notes/* >> displayRef = refs/notes/* >> >> Then all notes are copied when you rewrite a commit (rebase), and also >> displayed by eg. git show. >> >> Every now and then if you do extensive rebasing/splitting you get >> commits with the wrong or no patchwork ids. But that's pretty rare and >> not that hard to fixup when it happens. >> >> There's a slightly sanitised version of some of my scripts here: >> https://github.com/mpe/patchwork-scripts > > I had pretty much the same workflow to automatically update the patch > status in patchwork when I push things to the MTD tree, but I was > lacking the part sending notifications (this was done manually). > > With your scripts this is now addressed, thanks a lot for sharing > them! Awesome, glad they helped! I have some modifications locally to detect when I've merged an entire series and only reply to the first patch. At the moment that's all a bit too hacky for public viewing, but I'll try and clean it up at some point and push it out :) cheers