Skip to content

Commit a610b3d

Browse files
swebstersustrik
authored andcommitted
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 <[email protected]>
1 parent f8bd396 commit a610b3d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
syntax: glob # for hg-git users
12
Makefile
23
Makefile.in
34
configure

.hgeol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[patterns]
2+
** = native

0 commit comments

Comments
 (0)