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=-0.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED 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 E8831C04AB1 for ; Thu, 9 May 2019 13:20:03 +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 8D7E72089E for ; Thu, 9 May 2019 13:20:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D7E72089E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mails.ucas.ac.cn 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 1hOixY-0005nT-GO; Thu, 09 May 2019 09:19:40 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20] helo=cstnet.cn) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1hOixV-0005nN-QN for kernelnewbies@kernelnewbies.org; Thu, 09 May 2019 09:19:38 -0400 Received: from [192.168.1.104] (unknown [120.244.116.255]) by APP-10 (Coremail) with SMTP id tACowABnbnrhKNRcJ3QwLw--.1S3; Thu, 09 May 2019 21:19:30 +0800 (CST) Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: How to generate Fixes: ("") things From: wuzhouhui In-Reply-To: <20190509114144.GA6590@kroah.com> Date: Thu, 9 May 2019 21:19:08 +0800 Message-Id: <56B4ED35-7616-47CD-A4FB-80356A37926B@mails.ucas.ac.cn> References: <5ccd64c8.70ef7.16a9c234a08.Coremail.wuzhouhui14@mails.ucas.ac.cn> <20190509103801.GA26954@osadl.at> <20190509114144.GA6590@kroah.com> To: Greg KH X-Mailer: Apple Mail (2.3445.102.3) X-CM-TRANSID: tACowABnbnrhKNRcJ3QwLw--.1S3 X-Coremail-Antispam: 1UD129KBjvJXoW7tr13ZFyrCF43ur1rArW8Zwb_yoW8GFy3pa 48K3W8tF40qr1Ykw1Syw4rZrWjvr1a93y7XFyDKw43Crn8Kr4SyF1Igr43uas8Cr1Skw1j qFWDXryDGa4SyrDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkSb7Iv0xC_Zr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1lnxkEFVAIw20F6cxK64vIFxWle2I262IYc4CY6c8Ij28I cVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx 0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF 04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r 18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vI r41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr 1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAI cVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU4oUDDUUUU X-Originating-IP: [120.244.116.255] X-CM-SenderInfo: xzx2x05xkxxi2u6ptx1ovo3u1dvotugofq/1tbiAw8FAVmy52q6SwAAsf Cc: Nicholas Mc Guire , 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 May 9, 2019, at 7:41 PM, Greg KH wrote: > > 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. Thanks for all replies! I have sticked at kernel of distros for a long time, and didn't noticed hat the documentation has been changed a lot in upstream. > > greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies