Browse files

Line-ending conversion rules for hg-git users and enabled use of .git…

…ignore by hg-git users

Mercurial does not have built-in support for converting line-endings. This is a
settings file for hg eol (, 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 <>
  • Loading branch information...
1 parent f8bd396 commit a610b3d1b4d975bbffc74604aa43f793dfd3f301 @swebster swebster committed with sustrik Nov 19, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .hgeol
@@ -1,3 +1,4 @@
+syntax: glob # for hg-git users
@@ -0,0 +1,2 @@
+** = native

0 comments on commit a610b3d

Please sign in to comment.