On 4/21/08, Jeff King [off-list ref] wrote:
You could maybe do an index filter that gets the blob SHA1 of each file
that is new, and just munges those. But I think it is even simpler to
just keep a cache of original blob hashes mapping to munged blob hashes.
[...]
Thanks, this is really cool. I'll try it next time I'm messing with
our repositories (this week is unfortunately a bit too busy).
Do you think git would benefit from having a generalized version of
this script? Basically, the user provides a "munge" script on the
command line, and there's a git-filter-branch mode for auto-munging
(with a cache) every file in every checkin. Even if it's *only* ever
used for CRLF, I can imagine this being useful to a lot of people.
Thanks,
Avery