Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1011631ybp; Thu, 17 Oct 2019 06:51:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCY54HRMM/P63o+lih3q5p8OKFX1PkzSoeyj3E+rWmfzaSPgvRfap/0x6Pda/hQ/sJZO6n X-Received: by 2002:a17:906:8554:: with SMTP id h20mr3528425ejy.215.1571320278530; Thu, 17 Oct 2019 06:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571320278; cv=none; d=google.com; s=arc-20160816; b=qoUcmmopQ8uH5lxpZcUxZMAPpb17lg3YbS3CRKl+sMEAMMaeAVWqv0w67snYrGsXhw 3YdV+8IFEDHEZT7bADEXbCSB64cvm5fVuJhcLu2knnGnPdfFybMqUSleIP4DKiaq2QBS 68qFZLkTbB40qbBPmUg6aLrc7IGg8SDWoRbC3DeMecPQZ2wx8i4YnykULg20DqGja8H/ 6Vgw+0HG4jiCuo0RgF02eU0l8howkIk6PkiJZNKRW3CDE7eEUCsi3/ndjfj0UQTiSIUX VD9UB+oMYEmeHQxkgv7F6xJpnlorINcLZdfJDSDG1PPkd+8gFM6D+V14aP7H6AwvNXk9 MaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6DJo1YDZGNIpjKdZdH6rc462z5b7Cwq3+7UbSq9+XHM=; b=fC1RYpgXHf2M6DWtDQsVu6HjIc7Lk7RrD7mw1UZfvR/DX+lfEjk7HET+UB+rqpOy3q XW1qP2uoOj/uku7QeM6c6Mj5HlVwwL9dGJsn/BDWJ/POViqrObfeX/xZmBNS1KOovSnK PBLBEIONbPmAiAfZiEQbXV+Tb+GPeDNsX5koYWueyro6+MbGjEpaflgbpDEg3ycXVltj 69jy5aeQxa2jDMUmAcLybRItK8iygESqtwp0Xh6lxPxSMbY6/w3Gl9tpGsZFgIWrKXp9 mOJx/UUVAEjoPTeB2N2voZtZAoM6yhE+UF+N66RFAGuFQ7a99QDQHX8zHHAkIiluETcc L/Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qHCnf9eT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si1387785ejw.276.2019.10.17.06.50.55; Thu, 17 Oct 2019 06:51:18 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qHCnf9eT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437285AbfJPU5l (ORCPT + 99 others); Wed, 16 Oct 2019 16:57:41 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:35390 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730412AbfJPU5k (ORCPT ); Wed, 16 Oct 2019 16:57:40 -0400 Received: by mail-pf1-f195.google.com with SMTP id 205so160122pfw.2; Wed, 16 Oct 2019 13:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6DJo1YDZGNIpjKdZdH6rc462z5b7Cwq3+7UbSq9+XHM=; b=qHCnf9eTXKpxO0DjmKS3txfjMTqoAdncu/i9m1IfVP56B4eIBGwSyHrx1AlSdXaX7G goSlaz3g76DvM+4BktSv0kODTIZit5TBhjU2RCygkJfuOiC2b8OgXg7S13j4jz2YzegD 1+oflw0/7V40xm5KaaSL0XuY7T1BMiar92GONOn0NKAP8x70bHQHAiko+gPBSov4pss/ hrrztV3sq0tf9iqPan5Yj0dRoNxjhbDQEzNUHKKwpoQn+EFMCILx5PzwVqtpNfYnan6e W6Xo5GtvlhUP+s515aFxDLVcZEBtKke1y46DPXgp+3v4nqlxJzHcI0F7OD8oUQ3m0+rE b9VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6DJo1YDZGNIpjKdZdH6rc462z5b7Cwq3+7UbSq9+XHM=; b=Q/DKZ/YcUtOuOhStH4O5jEduoxJoVFYeRbeLncIP1pJLDHuO/IpK3w7tjdEQRmKDcT 8dUX8FjOWH4s84pkXO0qbwCo9FsaGJBzOYVDd8augrbP6SJc7UWhKXFnb7CRsoremYg6 zwZ7keKovfYsheIBCKcgaY7jMcRYKbBlvpFOPCPCnYJ18NHXhV38s3viUpiMCUNzUZqy dDieUApViPlNPsovZi/myujjgukrpdNRFiRZZY3kfMI1escgTFuTxMkp0CakpBDf/oKf fJ+3ha6d3llvgIY9gMh3dS1M5FZWR/sGkePj+4itTwQ2+J8aDu56zXZwvQIyJlFV+bK9 Uygw== X-Gm-Message-State: APjAAAVRnK3v1JWvnK0DFtZnErkKMnAuRGWeVDW5O8D+5/GteDCUBvwM 2Rq3sCLtXuxAhdZq9eW+9HIy5cNS X-Received: by 2002:a63:d50c:: with SMTP id c12mr99234pgg.199.1571259459163; Wed, 16 Oct 2019 13:57:39 -0700 (PDT) Received: from google.com ([2620:15c:2ce:200:cf67:1de0:170f:be65]) by smtp.gmail.com with ESMTPSA id e17sm29251243pfl.40.2019.10.16.13.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 13:57:38 -0700 (PDT) Date: Wed, 16 Oct 2019 13:57:36 -0700 From: Jonathan Nieder To: Vegard Nossum Cc: workflows@vger.kernel.org, Git Mailing List , LKML , Konstantin Ryabitsev , Eric Wong Subject: Re: email as a bona fide git transport Message-ID: <20191016205736.GA259536@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, A few small points. Vegard Nossum wrote: > * git am (or an alternative command) needs to recreate the commit > perfectly when applied, including applying it to the correct parent Interesting. "git format-patch" has a --base option to do some of what you're looking for, for the sake of snowpatch . Though it's not exactly the same thing you mean. We also discussed sending merge commits by mail recently in the virtual git committer summit[1]. Of course, the devil is in the details. It's straightforward to use "git bundle" to use mail as a Git transport today, but presumably you also want the ability to perform reviews along the way and that's not so easy with a binary format. Do you have more details on what you'd want the format to look like, particularly for merge commits? [...] > there > is no need for "changeset IDs" or whatever, since you can just use the > git SHA1 which is unique, unambiguous, and stable. In [2] the hope was for some identifier that is preserved by "git rebase" and "git commit --amend" (so that you can track the evolution of a change as the author improves it in response to reviews). Is that the conversation you're alluding to? [...] > Disadvantages: > > - requires patching git That's not a disadvantage. It means get to work with the Git project, which is a welcoming bunch of people, working on userspace (seeing how the other half lives), and improving the lives of everyone using Git. [...] > Date: Sat, 5 Oct 2019 16:15:59 +0200 > Subject: [PATCH 1/3] format-patch: add --complete > > Include the raw commit data between the changelog and the diffstat. Oh! I had missed this on first reading because it was in an attachment. I have mixed feelings. Can you say a bit more about the advantages and disadvantages relative to sending a git bundle? What happens if a mail client or a box along the way mangles whitespace in the commit message? Happy hacking, Jonathan [1] https://public-inbox.org/git/nycvar.QRO.7.76.6.1909261253400.15067@tvgsbejvaqbjf.bet/ [2] https://lore.kernel.org/ksummit-discuss/CAD=FV=UPjPpUyFTPjF-Ogzj_6LJLE4PTxMhCoCEDmH1LXSSmpQ@mail.gmail.com/