I’m trying to convert ignore files between these DVCS formats. I know this question has asked before, but it’s been some time and the reported answer appears to be outdated. As noted in one of the responses “with git version 1.8.3.4 it does not work for every valid .hgignore”
Mercurial uses syntax to select the type of matching to use:
syntax: regexp #Regular expression, Python/Perl
or
syntax: glob #Shell-style glob.
What syntax does git use? I’ve read it uses glob, but I’m not 100% sure it’s the same thing. If I specified glob for my mercurial ignore file, will that be 100% compatible with git? (Ignoring the syntax declaration line)