3 ms·
hg-git works great. I wish git and hg would settle on a common exclude file though. It gets annoying littering git repos with .hgignore and hg repos with .git
by seiji 16y ago
hg-git works great. I wish git and hg would settle on a common exclude file though. It gets annoying littering git repos with .hgignore and hg repos with .gitignore.
- eeperson 16y agoIn git you can use .git/info/exclude if you need to ignore stuff but don't want to commit a .gitignore.
- rcthompson 16y agoBut usually you want to commit the things that you're ignoring (some of them, at least). You just don't want to do it twice, once in .gitignore and a second time in .hgignore. My solution is generally to put syntax:glob at the top of .hgignore and symlink it to .gitignore (or vice versa), so that edits to one of them affect both. Of course, I'm assuming that I'll never need to commit a file called "syntax:glob". I feel this is a reasonable assumption.
- durin42 16y agoI'd welcome a patch to make hg-git have hg use any .gitignore data checked in to the repo. It's not impossible, just nobody's done it. (I'm the hg-git maintainer.)