On Thu, Apr 15, 2021 at 1:58 PM Michael Tremer michael.tremer@ipfire.org wrote:
After running those commands I see the following diff which almost entirely reverts all changes in your patch:
Strange -- I wonder where the .py file comes from for you.
What we would need is to have the command that generates POTFILES.in a mechanism that reads .gitignore and filters out what we do not want (in this case __init__.py).
Does that sound like it makes sense?
Yes. I sent in a v3 patch which uses git-check-ignore for this purpose. I would really like to avoid working with the .gitignore files directly for the sake of avoiding complex loops with the various .gitignore files that could live in all kinds of subdirectories, along with managing exclusions that are valid in .gitignore.
--Valters