Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7229411ybi; Wed, 5 Jun 2019 13:34:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqywahwq4Qqa4yp3CHi9vYU3EWd51xMbegRoMGFbjDf3LiN6NuYJ1qpl2O7oc2oOmbYRlX5i X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr46084717plb.146.1559766891982; Wed, 05 Jun 2019 13:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559766891; cv=none; d=google.com; s=arc-20160816; b=bLIRfMEH+mVhsnRcpjb41B13iVcujKDmBmsbPgPKBzDr5i6ZQZ9YWUixdV90aNmPBc uQckKH8s+7tjDPEuhCSGXXrbFQk0VkBqr+RF0LEguTyC7Km4LZGUFiCFccxAIrh3RCPy zI+SK8jJZf4HQic7C+RJnbBxc2bB6NtGqljRlxLQ0Q8Tw+GZo4f9y/uu6EbS5ibEvihS Ab2tJBE62Pd76/05J3s7GwkRzyPExVmyQcc2UqzxBccqqPbFTdglQxzORvMFAaKP49cb ady4Dolg+pvhmZIpVRV+sddCElPq9Id9rpYQSMTdHlaPKsQo9nCkqXylS8sW2gZnfIfz YFcQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=0DdeO1Ae2qEE8AfF24a5z0y3nm2+h6JFCMBqmxJVUss=; b=X9rMJYs0qTzsJ4IrBiilNrzzR9iydDuQTEiw/q6ro3yfe2rNB3edr3spfvPTKc2Eqd kfbFibpU2194sqvstr6LyFwTaOHZIp3lMdlIEwZ4LSRUWkl/kBswFGJEJUwTiwcziaLx pwErPjxKvnS0zKivXZnTf75gpeZCMS3do+GhhSFf9/qM+ejPQRRg+CyeLBHWNC6RDgiw 9ubcWgfJpnVyqZrKl+nXJhI5p7qlKhHd6FBDWPE1q9IxU3E0K3eCarR2Gz0Zyzhrlgr5 88vjHYKDBzy3uo4+0Eb9uV/XxoFe13xULyzzlEtI0dlpuFTK8MOwvgf26YjmEtq9jBKK cp/Q== 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 s12si12270425plp.63.2019.06.05.13.34.35; Wed, 05 Jun 2019 13:34:51 -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; 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 S1726597AbfFEUcw (ORCPT + 99 others); Wed, 5 Jun 2019 16:32:52 -0400 Received: from ms.lwn.net ([45.79.88.28]:35696 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfFEUcv (ORCPT ); Wed, 5 Jun 2019 16:32:51 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 0D9FC2E6; Wed, 5 Jun 2019 20:32:51 +0000 (UTC) Date: Wed, 5 Jun 2019 14:32:49 -0600 From: Jonathan Corbet To: "Theodore Ts'o" Cc: linux-doc@vger.kernel.org, LKML , Linus Torvalds , Geert Uytterhoeven , David Rientjes Subject: Re: [PATCH v2] Add a document on rebasing and merging Message-ID: <20190605143249.768d4b36@lwn.net> In-Reply-To: <20190605015456.GA2710@mit.edu> References: <20190604134835.16fc6bfa@lwn.net> <20190605015456.GA2710@mit.edu> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jun 2019 21:54:56 -0400 "Theodore Ts'o" wrote: > FYI, it looks like your patch somehow got hit by your text editor (or > MUA's) line wrapping... Weird, I haven't had a problem like that in decades. No idea what happened here... > > + > > + - Realize that the rebasing a patch series changes the environment in > > + which it was developed and, likely, invalidates much of the testing > > that > > + was done. A rebased patch series should, as a general rule, be treated > > + like new code and retested from the beginning. > > Shouldn't "reparenting" be used in this paragraph? > > I suppose if a patch is getting dropped or modified that can > invalidate some of the testing (although it really depends on the > nature of what's being dropped or modified). And if it's just adding > a Tested-by tag or a CVE number in the commit description, it's not > going to invalidate any testing. I had thought about it and chosen "rebasing", but I can change it. > > +Another reason for doing merges of upstream or another subsystem tree is > > to +resolve dependencies. These dependency issues do happen at times, and > > +sometimes a cross-merge with another tree is the best way to resolve them; > > +as always, in such situations, the merge commit should explain why the > > +merge has been done. Take a momehnt to do it right; people will read those > > +changelogs. > > It might also be useful to mention it might be useful to put the > commits which are needed to solve the dependency problem on its own > separate branch, based off of something like -rc2, and then each of > the trees which need the prerequisite commits can merge in that > branch. That is (I think) in the following paragraph: > Possible alternatives include agreeing with the maintainer to carry > both sets of changes in one of the trees or creating a special branch > dedicated to the dependent commits. Perhaps that last line should read "...dedicated to the prerequisite commits, which can then be merged into both trees" ? Then perhaps I can finally declare victory on this thing? :) Thanks, jon