Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756038AbbEUREI (ORCPT ); Thu, 21 May 2015 13:04:08 -0400 Received: from smtprelay0037.hostedemail.com ([216.40.44.37]:53925 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753081AbbEUREG (ORCPT ); Thu, 21 May 2015 13:04:06 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:982:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2198:2199:2200:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6261:8957:8985:9010:9025:9388:9392:10004:10049:10400:10848:11232:11639:11658:11914:12043:12517:12519:12555:12682:12740:13069:13255:13311:13357:14089:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: smile73_7ae92e8e1695f X-Filterd-Recvd-Size: 2718 Message-ID: <1432227843.20840.64.camel@perches.com> Subject: Re: [PATCH] Docs: SubmittingPatches: Clarify convention for git commit references From: Joe Perches To: Bjorn Helgaas Cc: Jonathan Corbet , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , Josh Stone Date: Thu, 21 May 2015 10:04:03 -0700 In-Reply-To: References: <20150521155954.9522.33952.stgit@bhelgaas-glaptop2.roam.corp.google.com> <1432225162.20840.49.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1807 Lines: 49 On Thu, 2015-05-21 at 11:44 -0500, Bjorn Helgaas wrote: > On Thu, May 21, 2015 at 11:19 AM, Joe Perches wrote: > > On Thu, 2015-05-21 at 10:59 -0500, Bjorn Helgaas wrote: > >> Clarify the convention for commit references in changelogs so it matches > >> what checkpatch suggests; see d311cd44545f ("checkpatch: add test for > >> commit id formatting style in commit log"). > >> > >> I chose a different example to make the ("") around the description more > >> obvious. > > [] > >> diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches > > [] > >> @@ -168,27 +168,18 @@ resources. In addition to giving a URL to a mailing list archive or > > [] > >> +When referring to a specific commit, please include both the first 12 > > > > maybe > > > > When referring to a specific commit, please include both 12 or more > > or "at least 12" or " a minimum of 12". > > OK. There's value in brevity. I was trying to avoid the "if 12 is > good, 40 must be better" idea, because 40-char SHA-1s make changelogs > ugly and hard to read. completely agree. > My git-fu isn't awesome Yeah, mine either. > (git log --oneline --abbrev-commit --abbrev=10 > | cut -f1 -d" " | grep ...........), but I *think* we have three git > SHA-1s so far that aren't unique in 10 characters (8b82547e338/e > 3ee50141858/b a7aa92d1b49/a), and everything is still unique in 11 or > 12-char SHA1s. Josh's seems to be strong though. http://blog.cuviper.com/2013/11/10/how-short-can-git-abbreviate/ 12 should be safe for a little while longer. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/