Skip to content

Commit

Permalink
.gitignore: prefix local generated files with a slash
Browse files Browse the repository at this point in the history
The pattern prefixed with '/' matches files in the same directory,
but not ones in sub-directories.

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Andra Paraschiv <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Gabriel Krisman Bertazi <[email protected]>
  • Loading branch information
masahir0y committed May 1, 2021
1 parent 77a8827 commit 9009b45
Show file tree
Hide file tree
Showing 27 changed files with 56 additions and 54 deletions.
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
*.example.dts
processed-schema*.yaml
processed-schema*.json
/processed-schema*.yaml
/processed-schema*.json
4 changes: 2 additions & 2 deletions arch/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
i386
x86_64
/i386/
/x86_64/
4 changes: 2 additions & 2 deletions certs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
x509_certificate_list
x509_revocation_list
/x509_certificate_list
/x509_revocation_list
2 changes: 1 addition & 1 deletion drivers/memory/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
ti-emif-asm-offsets.h
/ti-emif-asm-offsets.h
6 changes: 3 additions & 3 deletions drivers/tty/vt/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
conmakehash
consolemap_deftbl.c
defkeymap.c
/conmakehash
/consolemap_deftbl.c
/defkeymap.c
4 changes: 2 additions & 2 deletions fs/unicode/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
mkutf8data
utf8data.h
/mkutf8data
/utf8data.h
2 changes: 1 addition & 1 deletion kernel/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
/config_data
kheaders.md5
/kheaders.md5
10 changes: 5 additions & 5 deletions lib/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
gen_crc32table
gen_crc64table
crc32table.h
crc64table.h
oid_registry_data.c
/crc32table.h
/crc64table.h
/gen_crc32table
/gen_crc64table
/oid_registry_data.c
2 changes: 1 addition & 1 deletion samples/auxdisplay/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
cfag12864b-example
/cfag12864b-example
3 changes: 2 additions & 1 deletion samples/binderfs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
binderfs_example
# SPDX-License-Identifier: GPL-2.0
/binderfs_example
2 changes: 1 addition & 1 deletion samples/connector/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
ucon
/ucon
2 changes: 1 addition & 1 deletion samples/hidraw/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
hid-example
/hid-example
2 changes: 1 addition & 1 deletion samples/mei/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
mei-amt-version
/mei-amt-version
2 changes: 1 addition & 1 deletion samples/nitro_enclaves/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
ne_ioctl_sample
/ne_ioctl_sample
2 changes: 1 addition & 1 deletion samples/pidfd/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
pidfd-metadata
/pidfd-metadata
8 changes: 4 additions & 4 deletions samples/seccomp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
bpf-direct
bpf-fancy
dropper
user-trap
/bpf-direct
/bpf-fancy
/dropper
/user-trap
2 changes: 1 addition & 1 deletion samples/timers/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
hpet_example
/hpet_example
4 changes: 2 additions & 2 deletions samples/vfs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
test-fsmount
test-statx
/test-fsmount
/test-statx
3 changes: 2 additions & 1 deletion samples/watch_queue/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
watch_test
# SPDX-License-Identifier: GPL-2.0-only
/watch_test
2 changes: 1 addition & 1 deletion samples/watchdog/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
watchdog-simple
/watchdog-simple
18 changes: 9 additions & 9 deletions scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
bin2c
kallsyms
unifdef
recordmcount
sorttable
asn1_compiler
extract-cert
sign-file
insert-sys-cert
/asn1_compiler
/bin2c
/extract-cert
/insert-sys-cert
/kallsyms
/module.lds
/recordmcount
/sign-file
/sorttable
/unifdef
2 changes: 1 addition & 1 deletion scripts/basic/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
fixdep
/fixdep
4 changes: 2 additions & 2 deletions scripts/dtc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
dtc
fdtoverlay
/dtc
/fdtoverlay
2 changes: 1 addition & 1 deletion scripts/gcc-plugins/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
randomize_layout_seed.h
/randomize_layout_seed.h
2 changes: 1 addition & 1 deletion scripts/genksyms/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
genksyms
/genksyms
8 changes: 4 additions & 4 deletions scripts/mod/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
elfconfig.h
mk_elfconfig
modpost
devicetable-offsets.h
/devicetable-offsets.h
/elfconfig.h
/mk_elfconfig
/modpost
4 changes: 2 additions & 2 deletions usr/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
gen_init_cpio
initramfs_data.cpio
/gen_init_cpio
/initramfs_data.cpio
/initramfs_inc_data

0 comments on commit 9009b45

Please sign in to comment.