[darcs-users] CRLF Problem

j3h joshhoyt at gmail.com
Fri Apr 13 10:36:30 UTC 2007


On 4/12/07, Ralph Dratman <ralph.dratman at gmail.com> wrote:
> I do consider it to be a
> problem that should be solved as an option in darcs. In general I
> think the way to do this would be to create a set of options for
> darcs' internal equivalent of diff.

I'd much rather have a pre-record hook that could run any program to
alter the source before it gets recorded. You could set it to a script
that looked at all of your files and did line-ending conversion. Any
other source-code transformation could also be added as a pre-record
hook, without having to alter darcs.

A set of scripts on the darcs wiki for common transformations
(line-ending conversion, indentation normalization, XML tidy, ...)
could handle common use cases.

What do you think?

Josh



More information about the darcs-users mailing list