Re: [PATCH v2] selftests/mm: use pattern matching in .gitignore
From: Yosry Ahmed
Date: Fri May 08 2026 - 14:34:29 EST
On Tue, May 5, 2026 at 8:22 AM <pratmal@xxxxxxxxxx> wrote:
>
> From: Pratyush Mallick <pratmal@xxxxxxxxxx>
>
> The current .gitignore hardcodes each generated test binary by name,
> requiring updates every time a new test is added.
>
> Switch to the patten-matching approach similar to KVM:selftests.
> Ignore everything by default and then allow source extensions (.c, .h, .sh)
> and tracked non-source files.
>
> To avoid un-ignoring the generated headers, rename local_config.h to
> local_config.h_gen.
>
> Acked-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>
> Reviewed-by: Yosry Ahmed <yosryahmed@xxxxxxxxxx>
> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>
I think these need to be sorted out (as I mentioned privately).
Also, we probably need to split this into two patches: one renaming
local_config.h and one updating .gitignore.