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

Question on Clean/Smudge Infrastructure

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
May 4, 2026, 16:57 UTC
Message-ID
<079201dcdbe7$162d5430$4287fc90$@nexbridge.com>
Hi Git,
I have a edge use case that I would like to ask about.

Given a directory with a large number, say 100, text files, and a few scattered binary files - specified in .gitattributes as binary, what does clean smudge do with the binary files if they match the filter specification pattern? Are they ignored or processed. I am not sure that passing binary via stdin is necessarily portable. However, I would like to be able to explicitly ignore the binary files in my clean/smudge filters - either by doing a copy stdin/stdout (as I said, probably not portable), or sending a non-zero exit code, or some other mechanism. The root of the use case is that the directory is subject to significant changes over time, and errors are sneaking in when people forget to update .gitattributes or name the files incorrectly. I would like to make their situation more stable to errors.

Thanks, Randall

-- Brief whoami: NonStop&UNIX developer since approximately UNIX(421664400) NonStop(211288444200000000) -- In real life, I talk too much.

Next: Junio C Hamano
Message 1 of 3 in “Question on Clean/Smudge Infrastructure”
  1. rsbecker@nexbridge.comMay 4, 2026
  2. Junio C HamanoMay 5, 2026
  3. rsbecker@nexbridge.comMay 5, 2026

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.