Mercurial can be configured to ignore files whose filename have a certain extension. For example, *.txt files can be ignored by adding this to ~/.hgignore:
syntax: glob
*.txt
How can I setup my .hgignore file to ignore files whose filenames have no extensions? For example, files named foobar and abracadabra should be ignored, but foobar.cpp and abracadabra.c should be tracked.
Use regexp syntax instead since it's not possible with glob:
syntax: regexp
^[^.]+$
PS: you can add it right after your syntax: glob section
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With