Re: [PATCH v2 2/2] .gitignore: ignore Python compiled bytecode
From: Andy Shevchenko
Date: Wed Apr 16 2025 - 03:16:24 EST
On Wed, Apr 16, 2025 at 02:57:39PM +0800, Mauro Carvalho Chehab wrote:
> While the building system doesn't create any Python JIT bytecode,
> if one manually runs kernel-doc.py or get_abi.py, Python will,
> by default, create a bytecode and store it under scripts/lib/*.
>
> This is normal, and not controlled by the Kernel itself. So,
> add *.pyc as an extension to be ignored.
...
> *.mod.c
> *.o
> *.o.*
> +*.pyc
Shouldn't we prevent the order? (This should go after the "patch")
> *.patch
> *.rmeta
> *.rpm
...
P.S. I'm going to test the first patch (at least) soon.
--
With Best Regards,
Andy Shevchenko