mercurial - How to hg ignore filename with no extension? -
mercurial can configured ignore files filename have extension. example, *.txt
files can ignored adding ~/.hgignore
:
syntax: glob *.txt
how can setup .hgignore file ignore files filenames have no extensions? example, files named foobar
, abracadabra
should ignored, foobar.cpp
, abracadabra.c
should tracked.
use regexp
syntax instead since it's not possible glob
:
syntax: regexp ^[^.]+$
ps: can add right after syntax: glob
section
Comments
Post a Comment