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

Re: clean/smudge-filter with "attached file"?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 26, 2022, 20:06 UTC
Message-ID
<xmqqbkzyqn1b.fsf@gitster.g>
In-Reply-To
<20220126125209.GD16463@raven.inka.de>
Josef Wolf <jw@raven.inka.de> writes:
> Those files seemed to be good candidates for git's clean/smudge-filter.

Perhaps post-checkout hook to notice missing checksum files and recompute them would work, but this is clearly outside of what clean/smudge wants to do and what they were invented for (i.e. the contents of the file in the working tree itself need to be adjusted in the working tree and in the repository, hence there is a filter in each direction). As the mechanism being "filter", i.e. a bytestream is converted into another bytestream, it is not even designed to muck with other things on the filesystem.

Previous: Josef Wolf
Message 2 of 2 in “clean/smudge-filter with "attached file"?”
  1. Josef WolfJan 26, 2022
  2. Junio C HamanoJan 26, 2022

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.