Re: [PATCH v4 2/2] selftests/mm: use pattern matching in .gitignore
From: SJ Park
Date: Mon Aug 03 2026 - 20:01:23 EST
Cc-ed Liam's up-to-date email address.
On Mon, 3 Aug 2026 22:17:32 +0000 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 pattern-matching approach similar to KVM:selftests.
> Ignore everything by default and then allow source extensions (.c, .h, .sh)
> and tracked non-source files.
>
> Note that local_config.h was renamed to local_config.h_gen in a previous
> patch so that un-ignoring *.h files does not cause generated build
> artifacts to become untracked.
Looks nice and smart to me!
>
> Reviewed-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>
> Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
> Suggested-by: Yosry Ahmed <yosry@xxxxxxxxxx>
> Signed-off-by: Pratyush Mallick <pratmal@xxxxxxxxxx>
Reviewed-by: SJ Park <sj@xxxxxxxxxx>
> ---
> tools/testing/selftests/mm/.gitignore | 71 ++++-----------------------
> 1 file changed, 9 insertions(+), 62 deletions(-)
What a lovely diffstat. :)
Thanks,
SJ
[...]