Ignore Linux executables with hgignore

I am trying to configure .hgignore correctly, but I am having some problems. I do not want to see executables in my list of unicast files.

On Windows, it is very simple: *.exe . On Linux, executables usually do not have an extension. So how do you set up a filter that will ignore files that do not have an extension?

+6
source share
2 answers

There is no way to do this. You could relatively easily create a list of existing executables and automatically add them to your .hgignore, but new ones will still appear as unmonitored.

+8
source

I sometimes tweaked my project build files (Makefiles, .sconstructs, etc.) to build UNIX executables like foo.x rather than foo, just to automatically ignore them.

+1
source

Source: https://habr.com/ru/post/892189/


All Articles