Is there any way to do a dry run of xgettext
on source files, in order to simply check if there are any differences compared to the current .pot
file?
I have set up a Github workflow that will run xgettext
on source files any time a change to a source file is pushed to the repository. The result is that often the change to the source file didn't change the translation strings, so the only difference in the resulting .pot
file is the Creation date, which gets updated every time xgettext
is run. This makes for unnecessary commits, and triggers unnecessary webhook calls to my weblate instance which picks up on an "updated" .pot
file, and winds up generating its own Pull Request with an "updated" .pot
file.
If there were a way to do a dry run and first check if there are any actual differences in the strings, I could avoid unnecessary commits and PRs from polluting my repo. Any ideas?