mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
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
This commit is contained in:
parent
546e57f51b
commit
1d9a1215e8
10
.gitattributes
vendored
10
.gitattributes
vendored
@ -1,3 +1,11 @@
|
||||
*.[ch] whitespace=tab-in-indent,trailing-space
|
||||
*.gpg binary
|
||||
*.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
|
||||
|
1
po/.gitattributes
vendored
Normal file
1
po/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
/LINGUAS generated
|
2
test/dmidecode-dumps/.gitattributes
vendored
2
test/dmidecode-dumps/.gitattributes
vendored
@ -1 +1 @@
|
||||
/*.bin binary
|
||||
/*.bin binary generated
|
||||
|
1
test/fuzz/.gitattributes
vendored
1
test/fuzz/.gitattributes
vendored
@ -5,3 +5,4 @@
|
||||
/fuzz-fido-id-desc/ binary
|
||||
/fuzz-lldp-rx/* binary
|
||||
/fuzz-ndisc-rs/* binary
|
||||
/*/* generated
|
||||
|
2
test/journal-data/.gitattributes
vendored
2
test/journal-data/.gitattributes
vendored
@ -1,2 +1,2 @@
|
||||
# Journal data in export format
|
||||
/*.txt binary
|
||||
/*.txt binary generated
|
||||
|
1
test/test-network-generator-conversion/.gitattributes
vendored
Normal file
1
test/test-network-generator-conversion/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
* generated
|
1
test/test-network/.gitattributes
vendored
Normal file
1
test/test-network/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
/conf/*.key generated
|
2
test/test-resolve/.gitattributes
vendored
2
test/test-resolve/.gitattributes
vendored
@ -1 +1 @@
|
||||
/*.pkts binary
|
||||
/*.pkts binary generated
|
||||
|
2
test/test-sysusers/.gitattributes
vendored
Normal file
2
test/test-sysusers/.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/*.initial* generated
|
||||
/*.expected* generated
|
1
test/test-umount/.gitattributes
vendored
Normal file
1
test/test-umount/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
* generated
|
Loading…
Reference in New Issue
Block a user