How to make files with a specific extension automatically added to the commit?

I am trying to figure out how to automatically add all files of a certain extension (for example, * .tex) to the commit dialog (the checkbox should be checked! I do not want to search for new files every time)

I tried adding * .tex to the auto-commit list (= comma-list), but that does nothing.

+3
source share
2 answers

Mercurial has so-called hooks to do things automatically on certain events. See also the hgrc documentation and the Mercurial wiki page on Hooks pages .

pre-commit, hgrc :

[hooks]
pre-commit = hg add -I "*.tex"

tex . -I -I, .

.. TortoiseHG, , . , , TortoiseHG.

+4

hg :

hg add "*.tex"
+1

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


All Articles