Skip to content

Commit

Permalink
Line-ending conversion rules for hg-git users and enabled use of .git…
Browse files Browse the repository at this point in the history
…ignore by hg-git users

Mercurial does not have built-in support for converting line-endings. This is a
settings file for hg eol (http://mercurial.selenic.com/wiki/EolExtension), an
extension that replicates the behaviour of git with core.autocrlf=true.

Mercurial uses Python regex syntax by default in its .hgignore files. Adding
this line to .gitignore overrides that setting, so hg-git users can just create
a hardlink to it (e.g "mklink /H .hgignore .gitignore" on Windows) to use it.

Signed-off-by: Stuart Webster <sw_webster@hotmail.com>
  • Loading branch information
swebster authored and hintjens committed Nov 19, 2011
1 parent a247c7d commit bed61c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
syntax: glob # for hg-git users
Makefile
Makefile.in
configure
Expand Down
2 changes: 2 additions & 0 deletions .hgeol
@@ -0,0 +1,2 @@
[patterns]
** = native

0 comments on commit bed61c7

Please sign in to comment.