Differences between revisions 3 and 4
Revision 3 as of 2010-05-31 19:50:31
Size: 974
Comment:
Revision 4 as of 2010-05-31 19:52:38
Size: 1055
Comment:
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
Then please see `hg help eol` for details on how to configure the extension.

/!\ Expand this section.
Line 26: Line 30:
CategoryExtension CategoryExtensionsByOthers CategoryExtension

EOL Extension

This extension is distributed with Mercurial 1.5.4.

Author: Martin Geisler mg@lazybytes.net

1. Overview

Different platforms have different conventions for representation of line endings in text files:

  • Windows traditionally uses CRLF (\r\n, carriage-return followed by line-feed). The default text editor on Windows, Notepad, only understands CRLF. Command line tools and redirection also uses CRLF.

  • Unix and Linux traditionally uses LF (\n) on Unix. Many tools can handle CRLF, but sometimes the native format is essential.

  • Older versions of Mac OS used CR (\r), but Mac OS X and later is Unix and uses LF.

This extension will let your configure Mercurial to write text files using line endings that match your OS.

2. Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
eol =

Then please see hg help eol for details on how to configure the extension.

/!\ Expand this section.


CategoryExtension

EolExtension (last edited 2013-08-26 20:58:53 by BryanHoffpauir)