]> git.ipfire.org Git - thirdparty/gettext.git/commit
msggrep: Add new options -W and -S.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 06:48:44 +0000 (08:48 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 06:48:44 +0000 (08:48 +0200)
commitefb20317fbeae73b2be3a8e6e2a3ce6f0693459a
treeb25ede5e61e207e8baf384312c2c9719196f38dd
parent310e42a7a7c361967d02204a5b40bdaa0c390ca3
msggrep: Add new options -W and -S.

Reported at <https://savannah.gnu.org/bugs/?40489>.

* gettext-tools/src/msggrep.c (workflow_flags, sticky_flags): New variables.
(main): Initialize them. Handle the options -W and -S.
(usage): Document the -W and -S options.
(is_message_selected_no_invert): Return true if one of the specified workflow
flags or one of the specified sticky flags is set.
* gettext-tools/tests/msggrep-12: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/msggrep.texi: Document the -W and -S options.
* NEWS: Mention the change.
NEWS
gettext-tools/doc/msggrep.texi
gettext-tools/src/msggrep.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/msggrep-12 [new file with mode: 0755]