I'm trying to get mercurial to ignore diffs. I performed the following according to Mercurial ignore file:
$ echo "*.diff" >> .hgignore
Status now give me an error (I added the '...' for readability):
$ hg status
abort: .../.hgignore: invalid pattern (relre): *.diff
Searching the web for the error message returned a few non-relevant results. Any ideas on how to ignore diff files?
Write first:
syntax: glob
Fully .hgignore
The default regex. You can write all the regular expression, then switch to syntax glob. Example:
If you want to exclude all but a few, it is better to use a regular expression.