On Mon, Apr 19, 2021 at 4:10 PM Michael Tremer michael.tremer@ipfire.org wrote:
What is /*/ for? Why would we ignore any directory that is created in the root directory.
It feels like a bit much to me.
As this is debian/.gitignore, then as a result all directories created in debian/ get ignored. From gitignore(5): "These patterns match relative to the location of the .gitignore file."
The added exceptions to that are debian/patches/, debian/source/ and debian/tests/ as described in the commit message.
This ensures that if a new package is added, it doesn't need to be manually added to the Gitignore. Similarly, if a package is removed, then it doesn't need to be removed from the Gitignore either.
--Valters