From nobody Wed Mar 27 13:58:08 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 4V4StS3XmTz5FXgX; Wed, 27 Mar 2024 13:58:08 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V4StS1vcNz3ymr; Wed, 27 Mar 2024 13:58:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711547888; 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=oH7d3Jaw0kVoZ9BG2n6fKLAOWU3J9NyECQ0LA0NUc6o=; b=Nd3Q+KCi/QvKMIklCnm/t2aRD4C6AHw8CtQL8iAEX1LKcrPhREXGc0J9JRHXLUbmUF+wDQ IvA6GoJi4Ao5Hj1jNHPKg9gKXyCiRwJ6UiLB1/YQdpU7de848ho7yZkRmIARNcy6F8Flu3 Lv3tqM0hB2INVGC7LFuxSGJa8+tZTguVFgNBeC1+wBD0Odev2Y/PTgJ1fbOj13pK5zjH/B wia5F3wKyFyitGl61GfL3/TLTsdaqUp5mcuSExxYekHRXzE4Ur9e1Nvw3cKC0PcBAjJ55p n0TaHlznDT67HlB8ncZ6I0Fv84l6SKBwn9ZORVfERh0IeVwM1oj6tz5UZSvC3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711547888; a=rsa-sha256; cv=none; b=ZPWdvRTfD4Chui44jMFqf8u9kIHBVGAx8UIeiJD/JNFIIBsbxrmUcV7HJtrtU05atcvftJ yDjx1j5rHwaqYk8+qMzLLGuEMPWvQPVTLet+0CZMxhUDYQCy7EZxC5twVLbblH1PtjIbql q3/46umfzv83Xid8iQWkprwK/anNSy/9GzBVZ5C5gfxGlf2YaqBKHFxxtCl1gLrrEVC9BO Fi9cuvHkQMlg4CtUhGw2QG5N+PAylRPOhMhMhrq4TgvMrzKgeCLaJdKvMuvyOZHOsYdawX Zdk8stVCWiimzisRIlHmqfU/n/Ex/mNPu8d6IUu5/KwrOkKbIWOp/KqfV6MQMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711547888; 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=oH7d3Jaw0kVoZ9BG2n6fKLAOWU3J9NyECQ0LA0NUc6o=; b=FQ1AhrjZ183ZFoHxGgLkI6lz6MdXuZcfpawXis1tHhyEwqhwMQK7Ttm6rliL5VKVSzml4w yaEb2GYViDrF8SMBXQ1dZSGv/MjryaSA7T4GXuOhRfQbGV1DLLPW31XyB19TSEf2x6mavI bl35vvqmyJyMBeSphlNZilcm5wKL4g4aQAawpdmunP988Q0jA7qavVGQhRzDYwwwHIrjzc bBuvD9Z0GCB5zClWXO8hJXHKkfsqu6W4yeQXCFXylw/uTS9KW3e7FNgihmLZwnf9myRnEc ES0fMC0rOVSPJpFVEfOtVky1v700Bf1gnJG2XardQ4zTjnaQNgbbJlQYPrF8Dg== 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 4V4StS1VZSzmYY; Wed, 27 Mar 2024 13:58:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42RDw8pO057850; Wed, 27 Mar 2024 13:58:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42RDw87U057847; Wed, 27 Mar 2024 13:58:08 GMT (envelope-from git) Date: Wed, 27 Mar 2024 13:58:08 GMT Message-Id: <202403271358.42RDw87U057847@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 280085ef0c9d - main - tools/git: ensure git-arc is more platform indepdendent 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 280085ef0c9d754711d68ac74ccd98b58f54c716 Auto-Submitted: auto-generated The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=280085ef0c9d754711d68ac74ccd98b58f54c716 commit 280085ef0c9d754711d68ac74ccd98b58f54c716 Author: Mina Galić AuthorDate: 2024-03-27 13:53:39 +0000 Commit: Justin Hibbits CommitDate: 2024-03-27 13:57:01 +0000 tools/git: ensure git-arc is more platform indepdendent Summary: Linux systems' tail doesn't have `-r`. Instead, we can use git's own `--reverse` sorting for `rev-list`s. Reviewed by: markj, imp, jhibbits Differential Revision: https://reviews.freebsd.org/D39975 --- tools/tools/git/git-arc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh index c74577e2d5d7..1c828f3194af 100644 --- a/tools/tools/git/git-arc.sh +++ b/tools/tools/git/git-arc.sh @@ -364,7 +364,7 @@ build_commit_list() _commits=$(git rev-parse "${chash}") if ! git cat-file -e "${chash}"'^{commit}' >/dev/null 2>&1; then # shellcheck disable=SC2086 - _commits=$(git rev-list $_commits | tail -r) + _commits=$(git rev-list --reverse $_commits) fi [ -n "$_commits" ] || err "invalid commit ID ${chash}" commits="$commits $_commits"