From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A89DAC433E0 for ; Thu, 11 Mar 2021 07:01:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 679D564E46 for ; Thu, 11 Mar 2021 07:01:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231626AbhCKHBZ (ORCPT ); Thu, 11 Mar 2021 02:01:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:50304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbhCKHAz (ORCPT ); Thu, 11 Mar 2021 02:00:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E66C664E46; Thu, 11 Mar 2021 07:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615446054; bh=QgLOvn43euCqf5+GkvsfnAw34aq1zyBVVyozfMCAlw4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gOyb0lplNHbOijNit0siKZ/SkFM8Z9ceD14rHNNCtiVrlmZckpQcBb5b9bd8uRBwG czFaDFct3Sg+q30v5Zwm34dILAhdp8yI4LNfmCQGgyS23ciIjIf5shWCyOD4AvdPlG OOvfUxT3MTGKAa5PfDi+U14EpuVLdNgNstPKI3eU= Date: Thu, 11 Mar 2021 08:00:51 +0100 From: Greg KH To: Nick Desaulniers Cc: "# 3.4.x" , Sasha Levin , clang-built-linux Subject: Re: commit upstream. vs git cherry-pick -x Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Mar 10, 2021 at 02:37:03PM -0800, Nick Desaulniers wrote: > Hello stable maintainers, > While working on some backports I'm about to send hopefully today or > tomorrow, I was curious why the convention seems to be for folks to > use "commit upstream." in commit messages? I know that's what's > in https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-3, > but I was curious whether the format from `git cherry-pick -xs ` > is not acceptable? I assume there's context as to why not? It is nice > to have that info uniformly near the top, but I find myself having to > cherry-pick then amend a lot. Or is there an option in git to > automate the stable kernel's preferred style? There is no option in git, but I do have a script: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/scripts/c2p that takes a git id and turns it into the format we use. I think Sasha has one somewhere as well that does it in a nicer way (mine is in perl and hard-codes a lot of stuff). thanks, greg k-h