git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3 v2] Add --blob-filter option to filter-branch.

From
Jeff King <peff@peff.net>
Date
Apr 23, 2008, 21:55 UTC
Message-ID
<20080423215501.GB30057@sigill.intra.peff.net>
In-Reply-To
<1208981890-758-1-git-send-email-apenwarr@gmail.com>
On Wed, Apr 23, 2008 at 04:18:10PM -0400, Avery Pennarun wrote:
Show 5 quoted lines
> From: Jeff King <peff@peff.net>
> 
> This patch allows
> 
>   git filter-branch --blob-filter 'tr a-z A-Z'
The commit message munging you did is fine.

However, I think Johannes Sixt's question about providing the pathname needs to be resolved. As it is now, the blob-filter is impossible to use in a mixed binary/text repository, short of the undocumented $path magic that you described. And I am a little uncomfortable just adding the $path as he suggested because of the subtle bug it introduces.

-Peff
Previous: Johannes SchindelinNext: Avery Pennarun
Message 9 of 11 in “Add --blob-filter option to filter-branch.”
  1. 1/3 Add --blob-filter option to filter-branch.Avery Pennarun, Apr 23, 2008
  2. 2/3 Make filter-branch --glob-filter much faster by not calling 'cat'Avery Pennarun, Apr 23, 2008
  3. 3/3 Update documentation to describe git filter-branch --blob-filter.Avery Pennarun, Apr 23, 2008
  4. Johannes SchindelinApr 23, 2008
  5. Avery PennarunApr 23, 2008
  6. Johannes SchindelinApr 23, 2008
  7. 1/3 Add --blob-filter option to filter-branch.Avery Pennarun, Apr 23, 2008
  8. Johannes SchindelinApr 23, 2008
  9. Jeff KingApr 23, 2008
  10. Avery PennarunApr 23, 2008
  11. Jeff KingApr 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.