Re: [PATCH v4 2/2] selftests/mm: use pattern matching in .gitignore
SJ Park <[email protected]> Mon, 3 Aug 2026 17:01:03 -0700
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest |
|---|---|
| Message-ID | <[email protected]> |
Cc-ed Liam's up-to-date email address. On Mon, 3 Aug 2026 22:17:32 +0000 [email protected] wrote: > From: Pratyush Mallick <[email protected]> > > 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 <[email protected]> > Acked-by: Mike Rapoport (Microsoft) <[email protected]> > Suggested-by: Yosry Ahmed <[email protected]> > Signed-off-by: Pratyush Mallick <[email protected]> Reviewed-by: SJ Park <[email protected]> > --- > tools/testing/selftests/mm/.gitignore | 71 ++++----------------------- > 1 file changed, 9 insertions(+), 62 deletions(-) What a lovely diffstat. :) Thanks, SJ [...]