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=-2.2 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT 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 81D48C04AB1 for ; Thu, 9 May 2019 11:42:13 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A0EE216C4 for ; Thu, 9 May 2019 11:42:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="BMW3O4Qi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="yF/IiuQd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A0EE216C4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1hOhQs-0004tu-VW; Thu, 09 May 2019 07:41:50 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hOhQr-0004to-B4 for kernelnewbies@kernelnewbies.org; Thu, 09 May 2019 07:41:49 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2D71220E15; Thu, 9 May 2019 07:41:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 09 May 2019 07:41:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=6afhG1bi4iwXLK4tgPiALIkN27A R34vfb4YQ7YHkvRI=; b=BMW3O4QihNTo8UHGmTErssCNr1gTH0MvMd6/g3n5YTz c4zoBzmFCiR1yiMQfI3g9b/ndh1rkixOFHXOrJkko/FU7cz6i0KG0GXXudl3CBBO IP16tty5pzPW4h9djkbY59j5hu9Wf58WJLU+/rNB9g8vUEcjxK2bSn6SxIcwCLUh r5p6w9qaAtFluSJLgstNZK/hq/VSxssiv3z8hWbI8eqGkoKEeFGGafqq7UL8qDn7 BzwIZqdWb9j7qRDoXl4o5NKUfw+kXq6HcQ+TbFySkBZY0xftN69D144zsuspIrP7 LCO2Z+qgohz0352kE77hjoY7bpq5XqmzEuuSPuhrpQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=6afhG1 bi4iwXLK4tgPiALIkN27AR34vfb4YQ7YHkvRI=; b=yF/IiuQdv4cgehXJGWCrFe M32m10n/ANOTIBX7mWu0Rk45+gqIRzHmMf6l6HEWhzA1HcPeYYsKl9GqBqGzlwE2 1svASQ45Z4gjo/ZmeYnDupfP2HXAS3GNsjBEP9YnL2KAv5T4au59gOjIvBx/0zjW r3vAVXeMvFj5QzIcJAA695+1p5M+ffSoqXUVqeL/1m4j/aDMIpBahe2m/wt6amwI phJ835BPPHdnEv6xVYfkRrUCg0L4L605lYfXquXYPgmR12cd5qzz1OHnIExLCeya c+icda3QpQWo1sGkQFrfdn4pFa4Ii14rykaQajMYOusx9L0+MXA7iBooctefZncw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeehgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjfgesthdtre dttdervdenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheq necukfhppeekfedrkeeirdekledruddtjeenucfrrghrrghmpehmrghilhhfrhhomhepgh hrvghgsehkrhhorghhrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 49E8280068; Thu, 9 May 2019 07:41:46 -0400 (EDT) Date: Thu, 9 May 2019 13:41:44 +0200 From: Greg KH To: Nicholas Mc Guire Subject: Re: How to generate Fixes: ("") things Message-ID: <20190509114144.GA6590@kroah.com> References: <5ccd64c8.70ef7.16a9c234a08.Coremail.wuzhouhui14@mails.ucas.ac.cn> <20190509103801.GA26954@osadl.at> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190509103801.GA26954@osadl.at> User-Agent: Mutt/1.11.4 (2019-03-13) Cc: wuzhouhui , kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Thu, May 09, 2019 at 12:38:01PM +0200, Nicholas Mc Guire wrote: > On Thu, May 09, 2019 at 06:28:39PM +0800, wuzhouhui wrote: > > Hi, > > > > Stupid question, maybe. But I just could find the answer vi Bing or Google. > > > > How to generate > > Fixes: ("") > > E.g. > > Fixes: 298a32b13208 ("kmemleak: powerpc: skip scanning holes in the .bss section") > > > > Or they just write it manually? > > > starting with documentation in th kernel might be better than > google or bing > > > The following git config settings can be used to add a pretty format > for outputting the above style in the git log or git show commands: > [core] > abbrev = 12 > [pretty] > fixes = Fixes: %h (\"%s\") > > > or on the commandline you can simply use > > git log -1 --pretty=format:"Fixes: %h (\"%s\")" SHA Here's what I, and many other, kernel developers use: git show -s --abbrev-commit --abbrev=12 --pretty=format:"Fixes: %h (\"%s\")%n" Probably does the same thing, but doesn't require you to set 'abbrev=12' in your git config if you don't want to. Nice to see that's this is now documented. greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies