From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from mail-qt0-x243.google.com (mail-qt0-x243.google.com [IPv6:2607:f8b0:400d:c0d::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 23B812013A for ; Mon, 13 Feb 2017 05:52:35 +0000 (UTC) Received: by mail-qt0-x243.google.com with SMTP id h53so11897901qth.3 for ; Sun, 12 Feb 2017 21:52:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ormM8LFnR2MnHnQgSnQyNpuNr0GFZQCaFNMtr/UU5qc=; b=cZTU2M7mdq8XCreewrKZsfVeGeQYpvrE4uViv1G5pJSMibBXYUCwCPhmvE+4o+QCbs oro1VENHLeKZadIhacLISu1Kgm24us2LQQVLgQsU5QmZjUIre4as7h4W/ky+FHl5Ckk6 yd8UNLxlOMq9PqQTZ1JAILP4FjyCAZbT8JqFg1hXuQa8IDvd8wzDRj8kpscXm702t/N/ 3xPLQ1vLzrlZdy7LEUlQNdioxA37/dLw0U4ZIigudqGAMiOqzDLnzsiNaUn+Ggmhr+ES aHk/fWQgN0OPwTfonpMZyXhySSXLd4evywCbxWxLxCORkMm+eFic0wNFEx2oxKbOzJ68 +FyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ormM8LFnR2MnHnQgSnQyNpuNr0GFZQCaFNMtr/UU5qc=; b=a6TNrkzyFXdLitcX17UiEoc2MHOu8pDG1ofy9Ge65csJoK/wTd0c/eJuY1mQMuaDKp W/ovwZ+o4khsd7x9Vm10vTbJjv3E9uWAHXAMCJ552LFxM+xfIaFvnBJbZ+m1cLuTT3b3 BRkQWfiSj8QxtiYAQMO5SsIOznDPVUwsknSNZOz8kJWAZ1tE/xoYNhfpXnnVKh3SKjpo T0zMCFW2FdFwzcJR9lBgEVvD1+nvgoi9owX1PY4DBaMDMxWOgK/ne4fesm+u424Gubaz ugaz/fNPsjXLo0kekexloD3xqwN4Rdm7x9uy9SO62VXi+SY+DYFRIMDksI++cDIEL9Z0 i24A== X-Gm-Message-State: AMke39lJZJQVu5xHZP6VjAvbm5bVuEvOINAgrd39D0xBBR0u4TjHJD7Mu01JkEQhMvKeog== X-Received: by 10.200.1.11 with SMTP id e11mr18479514qtg.85.1486965154235; Sun, 12 Feb 2017 21:52:34 -0800 (PST) Received: from localhost.localdomain (c-24-131-5-126.hsd1.va.comcast.net. [24.131.5.126]) by smtp.gmail.com with ESMTPSA id f126sm6906345qkc.47.2017.02.12.21.52.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Feb 2017 21:52:33 -0800 (PST) From: Arif Khokar X-Google-Original-From: Arif Khokar Subject: Re: Working with public-inbox.org [Was: [PATCH] rev-parse: respect core.hooksPath in --git-path] To: Johannes Schindelin , Arif Khokar References: <20160819150340.725bejnps6474u2e@sigill.intra.peff.net> <46a5b9b6-f3f6-7650-8a5b-b0b52223e375@gmail.com> Cc: =?UTF-8?Q?Jakub_Nar=c4=99bski?= , Jeff King , Stefan Beller , "meta@public-inbox.org" , "git@vger.kernel.org" , Eric Wong Message-ID: Date: Mon, 13 Feb 2017 00:52:32 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 02/10/2017 11:10 AM, Johannes Schindelin wrote: > Hi Arif, > > On Wed, 24 Aug 2016, Johannes Schindelin wrote: >> I recently adapted an old script I had to apply an entire patch series >> given the GMane link to its cover letter: >> >> https://github.com/git-for-windows/build-extra/blob/master/apply-from-gmane.sh >> >> Maybe you find it in you to adapt that to work with public-inbox.org? > > Oh well. That would have been too easy a task, right? > > As it happens, I needed this functionality myself (when reworking my > git-path-in-subdir patch to include Mike Rappazzo's previous patch series > that tried to fix the same bug). > > I copy-edited the script to work with public-inbox.org, it accepts a > Message-ID or URL or GMane URL and will try to apply the patch (or patch > series) on top of the current revision: > > https://github.com/git-for-windows/build-extra/blob/2268850552c7/apply-from-public-inbox.sh Thanks for the link. One thing that comes to mind that is that it may be better to just download the patches and then manually apply them afterwords rather than doing it in the script itself. Or at least add an option to the script to not automatically invoke git am. Getting back to the point I made when this thread was still active, I still think it would be better to be able to list the message-id values in the header or body of the cover letter message of a patch series (preferably the former) in order to facilitate downloading the patches via NNTP from gmane or public-inbox.org. That would make it easier compared to the different, ad-hoc, methods that exist for each email client. Alternatively, or perhaps in addition to the list of message-ids, a list of URLs to public-inbox.org or gmane messages could also be provided for those who prefer to download patches via HTTP.