Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2967121imu; Wed, 7 Nov 2018 02:42:51 -0800 (PST) X-Google-Smtp-Source: AJdET5ePuu1vUKmjFJ7INPAJ1F5Sogyx9Bzw2IrNlf+TKN/WJmCfuefiJwlfUgs5BtmNBhvaPoWM X-Received: by 2002:a63:6ec4:: with SMTP id j187-v6mr1132581pgc.3.1541587371705; Wed, 07 Nov 2018 02:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541587371; cv=none; d=google.com; s=arc-20160816; b=sCbu3xbkLebkl/Yz9NhxWEgH2XDO8kb/6QbOWqX/Q/2qgAR5AmQyy8wNbqKh8ThWQF 5PnsGkgsXT4FWX15YpqW/E7oYda9brpvFJ9lcGS3DKNY3ziJ+Xga/6JgXFnuRAKD2RmD R6HWz8ehF7Uon1A3IRuMSryoDdqoDEoqExLH+RHgS19wL9UNwbbhU0TsEgGxqqTDt8Js kDxeDb/9e2SM+zUYhVCpEDaqkF0gagOeR+LGPqQRRJuVx9p1AwtfIzcjso1TL77OpEHL KDR6FUmkGIYhcLlLlxT4/Qs2kq5L/kPu+DXFc7GFWJDHLWrF3wFy7IZC5Yeke36vxE78 cskA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=tuUTAV9A5YRHWVJgjF41xQ51fREBTm5bqJmmgBcHnD0=; b=Oul3SYb11QDlZLIAihiPYl5Bk0LlcqdQv9hDkjfxQEHX1pzDegJKDLNmxuHZrzwwlB /N1TVXQmMXjGOoPU3a9xQRkxdW6qFEmSJTSF+lOHM6k07sBaX/H9aWdXVgxDIPaGC9jf kqdOV93EFJg8DLPlVDt5KY3eTW0dPmJpPjyppt99Bvek/CMSxF4EzlEGQ6IWZKUXRhoB ILyTODz5rpUjatn+WZh+FsnJXcp6qmuD0xDbhE2ygJTVjRLhlS4Lvbtt6dib5VWuaVJS kSZlEyiibRz2yiaEITgtMQRqnJCtlwmBCKrHgWhmVxobUpgHxLfK5apDTld4kqarZ7i0 XJXw== 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 k19-v6si261045pls.211.2018.11.07.02.42.36; Wed, 07 Nov 2018 02:42:51 -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 S1730248AbeKGULx (ORCPT + 99 others); Wed, 7 Nov 2018 15:11:53 -0500 Received: from mail.bootlin.com ([62.4.15.54]:52819 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbeKGULx (ORCPT ); Wed, 7 Nov 2018 15:11:53 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 462A9224DE; Wed, 7 Nov 2018 11:42:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (aaubervilliers-681-1-93-44.w90-88.abo.wanadoo.fr [90.88.34.44]) by mail.bootlin.com (Postfix) with ESMTPSA id D3B5C224CD; Wed, 7 Nov 2018 11:41:53 +0100 (CET) Date: Wed, 7 Nov 2018 11:41:53 +0100 From: Boris Brezillon To: Michael Ellerman 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.. Message-ID: <20181107114153.187fbc25@bbrezillon> In-Reply-To: <87zhutdrt7.fsf@concordia.ellerman.id.au> References: <20181023093521.dm3l5oen2j7etsot@kshutemo-mobl1> <20181023200408.GA13179@chatter.qube.local> <20181026211504.GG27137@sirena.org.uk> <87zhutdrt7.fsf@concordia.ellerman.id.au> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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! Boris