When I compile my C++ project, many shared object files are created with extensions such as
.so
.so.0
.so.7
.so.0.7
I need to add all those to my .gitignore
file. Were this a regex, I could use
.so[.0-9]*
However, the documentation says that .gitignore
treats the pattern as a shell glob suitable for consumption by
fnmatch(3)
with theFNM_PATHNAME
flag
I found no way to do what I want with the fnmatch
documentations I found. Is there really no way to do this?