Re: Git on Windows, CRLF issues
- From
Avery Pennarun <apenwarr@gmail.com>
- Date
- Apr 22, 2008, 16:51 UTC
- Message-ID
- <32541b130804220951p224c9be7ya4e8de5056481fd1@mail.gmail.com>
- In-Reply-To
- <20080422023918.GA5402@sigill.intra.peff.net>
On 4/21/08, Jeff King <peff@peff.net> 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