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.4 required=3.0 tests=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 6E913C04AB1 for ; Thu, 9 May 2019 10:39:16 +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 E98D320989 for ; Thu, 9 May 2019 10:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E98D320989 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hofr.at 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 1hOgS4-0004Ib-54; Thu, 09 May 2019 06:39:00 -0400 Received: from 178.115.242.59.static.drei.at ([178.115.242.59] helo=mail.osadl.at) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1hOgS2-0004IU-1i for kernelnewbies@kernelnewbies.org; Thu, 09 May 2019 06:38:58 -0400 Received: by mail.osadl.at (Postfix, from userid 1001) id A51205C0337; Thu, 9 May 2019 12:38:01 +0200 (CEST) Date: Thu, 9 May 2019 12:38:01 +0200 From: Nicholas Mc Guire To: wuzhouhui Subject: Re: How to generate Fixes: ("") things Message-ID: <20190509103801.GA26954@osadl.at> References: <5ccd64c8.70ef7.16a9c234a08.Coremail.wuzhouhui14@mails.ucas.ac.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5ccd64c8.70ef7.16a9c234a08.Coremail.wuzhouhui14@mails.ucas.ac.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: 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 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 thx! hofrat _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies