Ignoring files without extension

Kaminar Kaminar at seznam.cz
Mon Feb 3 17:23:34 UTC 2025


Hi,

I need help with the ignoring files. I would like to ignore files without 
extension in the specified directory and not in its subdirectories.

For example, the content of the repository is:

file
file.txt
dir/file
dir/file.txt
dir/sub/file
dir/sub/file.txt

Ignore file ".hgignore" is:

syntax: regexp
^dir/[^/.]+$

The output of "hg status -i" shows:

I dir/file
I dir/sub/file
I dir/sub/file.txt

In this case, I only want to ignore the file "dir/file". However, Mercurial 
also ignores all files in the subdirectory "dir/sub".

Could you help me find where the problem is?




Regards,

Karel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20250203/ee6326d9/attachment.htm>


More information about the Mercurial mailing list