From a610b3d1b4d975bbffc74604aa43f793dfd3f301 Mon Sep 17 00:00:00 2001 From: Stuart Webster Date: Sat, 19 Nov 2011 10:02:23 +0100 Subject: Line-ending conversion rules for hg-git users and enabled use of .gitignore 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 --- .gitignore | 1 + .hgeol | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .hgeol diff --git a/.gitignore b/.gitignore index 3bc8348..1ff594a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +syntax: glob # for hg-git users Makefile Makefile.in configure diff --git a/.hgeol b/.hgeol new file mode 100644 index 0000000..a484af6 --- /dev/null +++ b/.hgeol @@ -0,0 +1,2 @@ +[patterns] +** = native -- cgit v1.2.3