From: <rsbecker@nexbridge.com>
To: <git@vger.kernel.org>
Subject: Question on Clean/Smudge Infrastructure
Date: Mon, 4 May 2026 12:57:21 -0400 [thread overview]
Message-ID: <079201dcdbe7$162d5430$4287fc90$@nexbridge.com> (raw)
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 reply other threads:[~2026-05-04 17:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 16:57 rsbecker [this message]
2026-05-05 12:56 ` Question on Clean/Smudge Infrastructure Junio C Hamano
2026-05-05 15:04 ` rsbecker
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='079201dcdbe7$162d5430$4287fc90$@nexbridge.com' \
--to=rsbecker@nexbridge.com \
--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