KVM: selftests: Use pattern matching in .gitignore
authorSean Christopherson <seanjc@google.com>
Tue, 13 Dec 2022 00:16:43 +0000 (00:16 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Dec 2022 11:00:46 +0000 (06:00 -0500)
commit43e96957e8b87bad8e4ba666750ff0cda9e03ffb
tree753361027eab9eb0f6d01a27be0ed0194602998d
parentd61a12cb9af5b355a38e0c0106e91224b49195ce
KVM: selftests: Use pattern matching in .gitignore

Use pattern matching to exclude everything except .c, .h, .S, and .sh
files from Git.  Manually adding every test target has an absurd
maintenance cost, is comically error prone, and leads to bikeshedding
over whether or not the targets should be listed in alphabetical order.

Deliberately do not include the one-off assets, e.g. config, settings,
.gitignore itself, etc as Git doesn't ignore files that are already in
the repository.  Adding the one-off assets won't prevent mistakes where
developers forget to --force add files that don't match the "allowed".

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221213001653.3852042-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore