Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore Linux executables with hgignore

Tags:

mercurial

I'm trying to set up .hgignore correctly, but I'm having some problems. I don't want to see executables in my list of unadded files.

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

like image 277
Nicol Bolas Avatar asked Jul 07 '11 01:07

Nicol Bolas


1 Answers

There's no way to do it. You could, relatively easily, build a list of the executable files that exist now and automatically add them to your .hgignore but new ones will still show up as un-tracked.

like image 89
Ry4an Brase Avatar answered Sep 19 '22 21:09

Ry4an Brase