public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
From: Phillip Wood <phillip.wood123@gmail.com>
To: Dan Pristupov <dan@fork.dev>, git@vger.kernel.org
Subject: Re: `cat-file --filter` is broken in 2.50?
Date: Mon, 30 Jun 2025 18:06:25 +0100	[thread overview]
Message-ID: <9b3623a9-b596-44bc-b267-499e568a7f60@gmail.com> (raw)
In-Reply-To: <6eb10e33-4001-95a7-d2ad-3dd2a5c830ab@fork.dev>

Hi Dan

On 30/06/2025 17:07, Dan Pristupov wrote:
> Hi,
> 
> `cat-file --filter` stopped working in git 2.50.

cat-file did not have a "--filter" option before 2.50. The option you 
are looking for is "--filters". As git accepts unambiguous abbreviations 
for long options "--filter" used to match "--filters" but now it is a 
separate option. Being able to use abbreviated option names is useful at 
the command line but they are best avoided in scripts.

Best Wishes

Phillip

> 
> ```
> $ git version
> git version 2.47.1.windows.2
> 
> $ git cat-file --filter "HEAD:changelog.md"
> <content>
> ```
> 
> ```
> $ git version
> git version 2.50.0.windows.1
> 
> $ git cat-file --filter "HEAD:changelog.md"
> fatal: invalid filter-spec 'HEAD:changelog.md'
> ```
> 
> The problem was introduced at eb83e4c64b5a3458569593c2ab0c29365f10a82f.
> 
> Then it was merged into the main branch by 
> a271b05066a1fd2c3a62508d9908d6c5df14a1cb.
> 
> This seems like a bug.
> 
> 


      reply	other threads:[~2025-06-30 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-30 16:07 `cat-file --filter` is broken in 2.50? Dan Pristupov
2025-06-30 17:06 ` Phillip Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b3623a9-b596-44bc-b267-499e568a7f60@gmail.com \
    --to=phillip.wood123@gmail.com \
    --cc=dan@fork.dev \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox