mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Zbigniew Jędrzejewski-Szmek](/assets/img/avatar_default.png)
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
12 lines
446 B
Plaintext
12 lines
446 B
Plaintext
*.[ch] whitespace=tab-in-indent,trailing-space
|
|
*.gpg binary generated
|
|
*.bmp binary
|
|
|
|
# Mark files as "generated", i.e. no license applies to them.
|
|
# This includes output from programs, directive lists generated by grepping
|
|
# for all possibilities, samples from fuzzers, files from /proc, packet samples,
|
|
# and anything else where no copyright can be asserted.
|
|
#
|
|
# Use 'git check-attr generated -- <path>' to query the attribute.
|
|
[attr]generated
|