From nobody Sat Nov 16 14:57:15 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XrH6g36dqz5dT0n; Sat, 16 Nov 2024 14:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XrH6g2TLxz44Bm; Sat, 16 Nov 2024 14:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731769035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xEIoltcFe4Ib9Zp/BeiNEIZbwW5MpIfupMw/Czmy09M=; b=MHHkecFh/7udrA2uKr+cAfmv/nF+Aai8N/yGaFFLZBCuTNK0eds58ADfVsGRSqFcEuE8ZK FUc58u5cs1622yeHzd94cIVyeN8nldboSKKJc/QZO7lq2PYcwvmydLEYftn1mn9WzqAI8H ysAKChlfKluZSSXBtKkkNJPPGGIenDqZhl4sYe+BxmsZ1FcGcfp3U8woitsaUzKzVRDM0D i39tDkU5y9khDNZRm/7O5y3onH8GZx6yumU182BhnBHkiJBfeN0QSlossxa/Ebi7iw8NY1 JP5NbsmPUA99ZFbGeWsHPNkgDLqY7nQQ+Ds/UX8onL8sLTuFUo57o1X+eWOOHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731769035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xEIoltcFe4Ib9Zp/BeiNEIZbwW5MpIfupMw/Czmy09M=; b=bfZouLxZQ5E/yvYMT2jxUWC+X1ERKyYcqti790D2undDw3RbOdLXNO1OSxtqFA9zQBqPQz FC+fgi7t8E7Gr7m3Xmn2x/Ul1JmRVdiuTPZFKzo2l9uZinEgyGtV1GirATSzDUhd1K1DOo yocnrVM3ygs3/yTDiYYW0Vcd8gglmAa6GUvnmPT4+PPKSqNk5Dt43t68ULJmG8/x9ymbFE ajvMEBOuTu+4i/NM3E+2Mrx8ZTLaTC37OBObI5VGlaaTFgmXsznZKr3UmW+G204zWRr2Gq laUwEOx9qZJqRQSy61ktugY1/0N13ZD9vaEf40+G5XgNnrBX8y2DYyY4MFgWng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731769035; a=rsa-sha256; cv=none; b=wemV+S5K+mOdwdYFw2v/RT90mkgvuFJFVJol3N3tKr48i9x+duBYf6pE0VUn42IqHD4MYg Scg+ELtHJ1nx/yMzmtIvSTIb93kJTMi8YwOnstF0YrcdJQWnCLrsJAdn7CWiJHF+yO/T9o ULQ+xOjlFtOXTDDmEVdWi9lzDFl1vPmHhQHYrB0ouNgc5v4y1/I9wvQ7pyzn6vyX6Q2ox5 dm5Ku/EBB4F8L0tSxWghyjxDkqJAcPkmYgM4fzqlLSUc8qpfKUjfHYfbjmqyf4+LDhusv6 TmM1ZkLL8FuhIL5hIkWNIv6TkzG5t2E6EEaLOGPvyZ333u6QS8ovHGkUMLAyTw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XrH6g1ypCz1BBm; Sat, 16 Nov 2024 14:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AGEvFum054595; Sat, 16 Nov 2024 14:57:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AGEvFtr054592; Sat, 16 Nov 2024 14:57:15 GMT (envelope-from git) Date: Sat, 16 Nov 2024 14:57:15 GMT Message-Id: <202411161457.4AGEvFtr054592@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 2c2f741363a9 - main - mfc-candidates: Improve hash expansion List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2c2f741363a9dde7b855b05785b36d6d979c97ae Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2c2f741363a9dde7b855b05785b36d6d979c97ae commit 2c2f741363a9dde7b855b05785b36d6d979c97ae Author: Ed Maste AuthorDate: 2024-11-15 21:29:50 +0000 Commit: Ed Maste CommitDate: 2024-11-16 14:56:07 +0000 mfc-candidates: Improve hash expansion `git rev-parse` is the canonical way to turn a short hash (or other commit-ish) into a full hash. Sponsored by: The FreeBSD Foundation --- tools/tools/git/mfc-candidates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools/git/mfc-candidates.lua b/tools/tools/git/mfc-candidates.lua index b29f1ad4d121..d2865a892971 100755 --- a/tools/tools/git/mfc-candidates.lua +++ b/tools/tools/git/mfc-candidates.lua @@ -77,7 +77,7 @@ local function read_exclude(filename) -- Hashes are 40 chars; if less, expand short hash. if #hash < 40 then hash = exec_command( - "git show --pretty=%H --no-patch " .. hash) + "git rev-parse " .. hash) end table.insert(content, hash) end