Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp311364imu; Wed, 19 Dec 2018 19:20:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/Udrsd7FQ6kvWW7M4X3+T6EQPbVyMRw3rQP58E7Ld48Qk2rRmUDoKcEqtPCIfUkdxzDZbmZ X-Received: by 2002:a17:902:1d4a:: with SMTP id u10mr21555652plu.122.1545276003598; Wed, 19 Dec 2018 19:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545276003; cv=none; d=google.com; s=arc-20160816; b=i0LVLcqKbMNGtyBH068Qnuay/bvTjUW0Zma87RUvzIdPxtc+IB0GsCRlAy2fBr6RIP tqvT+TyO1RoQFsnILaKWfvMW+V9VuHB0rHbux1f+a6K4oyMad8uuuJzv4c/Cw34E66um d/hUL6CFHaWLu12W4Uz8GczY7J0C6lFSKiWk0UXstV+xy2J6+sYRHPdsBz1RFkvv59zh //ysGiejpR7y7Jx89YgkxmuFFnUqcPVLKcXVfB0J2KXHmrFCASbhJwtLAO5N8fEWbm+a 6URuyziUROIr/duLqi9MxwdnV7p0brd3CQNbUYggynrTnFPEw0SWvo7jsd4hS5VBPNo7 ziSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LNRQwHzHCnSl0m0xOWhcZAQafUuDZb+evzNWgEIpjB0=; b=UyvZWRdKKKSRrUbtUtnO9wijqcY0bxPZT3q2mD+ZW+ynH6CkWQmLRug445i0AiukJF 58WLVDTbVn3UMK90PaY45xYD1BXsL5Xe/74jLez9cK6mUUJ1PTegfOA4irdrjILPIt4b zj6XTfKFWc2VlI+qXBc86ekXMRA+18urVMA/xwwZODFsMXgB6scg1psih0EXho9IQMLH nIOH/Ne36hYKmYz/9pWl+ncpepkCIjtK+kRA61xIspWJCq4Amg1Gg7nNcvCROgwk755F gq0cVM45QBoYZmpyOnX1jnE10vvbKCKHi40vDq7sLHsCCzxu2vdU2xsKzJzaLLpVJylu hB+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qBWAgVvS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si17207032pfb.81.2018.12.19.19.19.48; Wed, 19 Dec 2018 19:20:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qBWAgVvS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730343AbeLTABb (ORCPT + 99 others); Wed, 19 Dec 2018 19:01:31 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35604 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbeLTABb (ORCPT ); Wed, 19 Dec 2018 19:01:31 -0500 Received: by mail-wm1-f67.google.com with SMTP id c126so239512wmh.0 for ; Wed, 19 Dec 2018 16:01:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LNRQwHzHCnSl0m0xOWhcZAQafUuDZb+evzNWgEIpjB0=; b=qBWAgVvSycaqzvZF3FqfqLPMYghgrlbbopm55d5QFT9cwbA/+FcsABO4HKCidpXQkn F6i50sDJyKtPEpYTsKfrhxsFNXith3W38sOw+LdBqQvsn4J5t1L4u72xWtv4yU0OoQp+ mPk8qKq/NOaHUyruhpkK26463Q99b9yw6288XK6GTF/T669wqkMeF1YE6ilvuAsn1P1V S+lIYjg7hcUqnmSZ1vwhpMfhY8Z+PdShCEwMjPA+5OfC19ALytU9fglgGLwucRcbv5+9 fnFTaYL1smYDhWVC3eZqE5KCVcMYlKrdTXquwMT9DgaocJo2S+bga67IpLTKZs4+mLpB xSFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LNRQwHzHCnSl0m0xOWhcZAQafUuDZb+evzNWgEIpjB0=; b=iXPbEBDjufQ45mL9xf/gIXBCn5DpluUaLKyNHggkZ2XFUWVZCiTYZdga21zyMuINk9 8FxY2uEpey5DRS2G5HQxTPk9JCyslg3jBWt4TEMp1ZZEDvWsA5pPnUuUJzYzkoQqAxwJ KKHPpnROhVdXQEXSrDaEDlriAiuRkP71KEjK8ot8cvRMP4GvJAIIfN2iH3ssZ5dZBTGt wXqkbhsScaolWRAQfajaruSenPAKikU2GZfgk9Ix0g6W6hnTSYPUxST1eP0YYUnfXnbh q7w2hHE43G4ESu6PlMoAhTMs5m2HNTmCdejyDu33SJPRrc4TdmWwlpl4BL2vaP0PcFrX M+8A== X-Gm-Message-State: AA+aEWaV+tzjRWi8AslH1MW7CVZkzcKBw7x2g7X/RwRN98vPirw77SDs hF0H63vWKK3DbzLNuKdcFJk= X-Received: by 2002:a7b:ce8e:: with SMTP id q14mr3756492wmj.10.1545264089690; Wed, 19 Dec 2018 16:01:29 -0800 (PST) Received: from vm.nix.is ([2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id j202sm17214230wmf.15.2018.12.19.16.01.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 16:01:28 -0800 (PST) From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Jacob Keller , Andrew Morton , Jeff Kirsher , =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Subject: [PATCH] Documentation/process: hardcoded core.abbrev considered harmful! Date: Thu, 20 Dec 2018 01:01:12 +0100 Message-Id: <20181220000112.24891-1-avarab@gmail.com> X-Mailer: git-send-email 2.20.1.415.g653613c723 In-Reply-To: <1396949135-27122-1-git-send-email-jeffrey.t.kirsher@intel.com> References: <1396949135-27122-1-git-send-email-jeffrey.t.kirsher@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stop recommending that core.abbrev=12 be hardcoded when referring to kernel commits, and instead rely on the git's default abbreviation. Hardcoding this at "12" was done in 8401aa1f5997 ("Documentation/SubmittingPatches: describe the Fixes: tag", 2014-06-06), back then Linus's git/git@e6c587c733 ("abbrev: auto size the default abbreviation", 2016-09-30) had not yet landed, and the default abbreviation was "7". At the time linux.git had around 3.5 million objects, so if the auto sizing had been in effect "11" would have been picked. Now "12" is what we pick by default anyway. More importantly, we'll roll over to "13" at around 16 million objects, which given the growth rate isn't that far off. At that point this documentation will be worse than the default. Let's just stop doing this. Git versions as of 2.11 released over 2 years ago use the auto-sizing, and it seems like a fair assumption that kernel developers use a fairly recent git version. Signed-off-by: Ævar Arnfjörð Bjarmason --- As an aside I have upcoming git.git patches so you'll be able to set core.abbbrev to e.g. +1 to get "13" now, "14" when it rolls over at ~16 million etc. Maybe that'll be a good fit for projects like linux.git that want more future-proof abbreviated SHAs than most. Documentation/process/submitting-patches.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/process/submitting-patches.rst b/Documentation/process/submitting-patches.rst index c0917107b90a..faf661f58cb1 100644 --- a/Documentation/process/submitting-patches.rst +++ b/Documentation/process/submitting-patches.rst @@ -189,8 +189,6 @@ the SHA-1 ID, and the one line summary. For example:: 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\") -- 2.20.1.415.g653613c723