{"thread":{"id":"63713","subject":"`cat-file --filter` is broken in 2.50?","startedAt":"2025-06-30T16:07:56Z","lastAt":"2025-06-30T17:06:28Z","messageCount":2,"participants":["Dan Pristupov","Phillip Wood"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"520930","messageId":"6eb10e33-4001-95a7-d2ad-3dd2a5c830ab@fork.dev","threadId":"63713","inReplyTo":null,"subject":"`cat-file --filter` is broken in 2.50?","fromName":"Dan Pristupov","fromEmail":"dan@fork.dev","sentAt":"2025-06-30T16:07:47Z","receivedAt":"2025-06-30T16:07:56Z","isPatch":false,"sender":{"key":"dan@fork.dev","avatar":null},"body":"Hi,\n\n`cat-file --filter` stopped working in git 2.50.\n\n```\n$ git version\ngit version 2.47.1.windows.2\n\n$ git cat-file --filter \"HEAD:changelog.md\"\n<content>\n```\n\n```\n$ git version\ngit version 2.50.0.windows.1\n\n$ git cat-file --filter \"HEAD:changelog.md\"\nfatal: invalid filter-spec 'HEAD:changelog.md'\n```\n\nThe problem was introduced at eb83e4c64b5a3458569593c2ab0c29365f10a82f.\n\nThen it was merged into the main branch by \na271b05066a1fd2c3a62508d9908d6c5df14a1cb.\n\nThis seems like a bug.\n\n"},{"id":"520939","messageId":"9b3623a9-b596-44bc-b267-499e568a7f60@gmail.com","threadId":"63713","inReplyTo":"6eb10e33-4001-95a7-d2ad-3dd2a5c830ab@fork.dev","subject":"Re: `cat-file --filter` is broken in 2.50?","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2025-06-30T17:06:25Z","receivedAt":"2025-06-30T17:06:28Z","isPatch":false,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"Hi Dan\n\nOn 30/06/2025 17:07, Dan Pristupov wrote:\n> Hi,\n> \n> `cat-file --filter` stopped working in git 2.50.\n\ncat-file did not have a \"--filter\" option before 2.50. The option you \nare looking for is \"--filters\". As git accepts unambiguous abbreviations \nfor long options \"--filter\" used to match \"--filters\" but now it is a \nseparate option. Being able to use abbreviated option names is useful at \nthe command line but they are best avoided in scripts.\n\nBest Wishes\n\nPhillip\n\n> \n> ```\n> $ git version\n> git version 2.47.1.windows.2\n> \n> $ git cat-file --filter \"HEAD:changelog.md\"\n> <content>\n> ```\n> \n> ```\n> $ git version\n> git version 2.50.0.windows.1\n> \n> $ git cat-file --filter \"HEAD:changelog.md\"\n> fatal: invalid filter-spec 'HEAD:changelog.md'\n> ```\n> \n> The problem was introduced at eb83e4c64b5a3458569593c2ab0c29365f10a82f.\n> \n> Then it was merged into the main branch by \n> a271b05066a1fd2c3a62508d9908d6c5df14a1cb.\n> \n> This seems like a bug.\n> \n> \n\n"}]}