From 1d9a1215e8b0a2c9f3723d6f1fe5340943ed53a1 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 17 Oct 2021 19:49:15 +0200 Subject: gitattributes: introduce and use "generated" attribute I want to mark some files to be ignored for licensing purposes, e.g. output from fuzzers and other samples. By using the gitattribute machinery for this we don't need to design a custom protocol: $ git check-attr generated test/test-sysusers/unhappy-* test/test-sysusers/unhappy-1.expected-err: generated: set test/test-sysusers/unhappy-1.input: generated: unspecified test/test-sysusers/unhappy-2.expected-err: generated: set test/test-sysusers/unhappy-2.input: generated: unspecified test/test-sysusers/unhappy-3.expected-err: generated: set test/test-sysusers/unhappy-3.input: generated: unspecified --- test/test-sysusers/.gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/test-sysusers/.gitattributes (limited to 'test/test-sysusers') diff --git a/test/test-sysusers/.gitattributes b/test/test-sysusers/.gitattributes new file mode 100644 index 0000000000..f03f6c03ac --- /dev/null +++ b/test/test-sysusers/.gitattributes @@ -0,0 +1,2 @@ +/*.initial* generated +/*.expected* generated -- cgit v1.2.3