Very easy. Forward: s/\r\n/\n/. Backward: s/\(^\|[^\r]\)\n/\r\n/.
Yes, you are right.
However, since this is all post-1.5.0 (right? Right?) why not go with more
of Ted's proposal, and make this whole mess also usable for other things
than just crlf issues?
And I _really_ think that you do not help Windows people by doing this
one-way thing.
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html