From owner-dev-commits-ports-all@freebsd.org Thu Apr 8 15:47:13 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BC3A5DF508; Thu, 8 Apr 2021 15:47:13 +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 4FGQcd0gZDz3Qpy; Thu, 8 Apr 2021 15:47:13 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 08D835259; Thu, 8 Apr 2021 15:47:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 138FlCbL050642; Thu, 8 Apr 2021 15:47:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 138FlCPe050641; Thu, 8 Apr 2021 15:47:12 GMT (envelope-from git) Date: Thu, 8 Apr 2021 15:47:12 GMT Message-Id: <202104081547.138FlCPe050641@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mathieu Arnold Subject: git: c618b1501762 - main - tindex: Amend last commit a bit. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mat X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c618b1501762ea9cd7ef0a3ae44cec7970dfbd5c Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 15:47:13 -0000 The branch main has been updated by mat: URL: https://cgit.FreeBSD.org/ports/commit/?id=c618b1501762ea9cd7ef0a3ae44cec7970dfbd5c commit c618b1501762ea9cd7ef0a3ae44cec7970dfbd5c Author: Mathieu Arnold AuthorDate: 2021-04-08 15:33:10 +0000 Commit: Mathieu Arnold CommitDate: 2021-04-08 15:46:53 +0000 tindex: Amend last commit a bit. When you run `git log foo` foo can be, from git-log(1), `[] [[--] ...]`, so, may things. - A "revision range" described by gitrevision(7) (don't got there unless you have a few hours, or already lost your sanity), which can be : * a commit hash, * a tag * a branch, * a ref name * a "describe output" * and many other ways to describe revisions * a range made by any of the above - An existing path. When it can't find any of those, git figures out that you meant something else and made a typo, and exits. If you really meant a path, you have to run `git log -- foo`. Then git knows that you meant a path and only a path, it will then assume that you knew what you meant, and will go look in the history. --- Tools/scripts/tindex | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tools/scripts/tindex b/Tools/scripts/tindex index cf8eb8c6ce8e..57a74dd8c23f 100755 --- a/Tools/scripts/tindex +++ b/Tools/scripts/tindex @@ -42,11 +42,9 @@ fi # -------------------------------------------------------- blame() { - # Find out who is responsible for current version of file $1, if not deleted + # Find out who is responsible for current version of file $1 - if [ -e $1 ]; then - ${GIT} log --no-patch --max-count=1 --format='%ce' $1 - fi + ${GIT} log --no-patch --max-count=1 --format='%ce' -- $1 } indexfail() {