Thread (25 messages) flat view 25 messages, 7 authors, 2016-06-15

Re: Git on Windows, CRLF issues

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:44:31

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help