Skip to content

Commit 9009b45

Browse files
committedMay 1, 2021
.gitignore: prefix local generated files with a slash
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]>
1 parent 77a8827 commit 9009b45

File tree

27 files changed

+56
-54
lines changed

27 files changed

+56
-54
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
*.example.dts
3-
processed-schema*.yaml
4-
processed-schema*.json
3+
/processed-schema*.yaml
4+
/processed-schema*.json

‎arch/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
i386
3-
x86_64
2+
/i386/
3+
/x86_64/

‎certs/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
x509_certificate_list
3-
x509_revocation_list
2+
/x509_certificate_list
3+
/x509_revocation_list

‎drivers/memory/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ti-emif-asm-offsets.h
2+
/ti-emif-asm-offsets.h

‎drivers/tty/vt/.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
conmakehash
3-
consolemap_deftbl.c
4-
defkeymap.c
2+
/conmakehash
3+
/consolemap_deftbl.c
4+
/defkeymap.c

‎fs/unicode/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
mkutf8data
3-
utf8data.h
2+
/mkutf8data
3+
/utf8data.h

‎kernel/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
/config_data
3-
kheaders.md5
3+
/kheaders.md5

‎lib/.gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
gen_crc32table
3-
gen_crc64table
4-
crc32table.h
5-
crc64table.h
6-
oid_registry_data.c
2+
/crc32table.h
3+
/crc64table.h
4+
/gen_crc32table
5+
/gen_crc64table
6+
/oid_registry_data.c

‎samples/auxdisplay/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
cfag12864b-example
2+
/cfag12864b-example

‎samples/binderfs/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
binderfs_example
1+
# SPDX-License-Identifier: GPL-2.0
2+
/binderfs_example

‎samples/connector/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ucon
2+
/ucon

‎samples/hidraw/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
hid-example
2+
/hid-example

‎samples/mei/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
mei-amt-version
2+
/mei-amt-version

‎samples/nitro_enclaves/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ne_ioctl_sample
2+
/ne_ioctl_sample

‎samples/pidfd/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
pidfd-metadata
2+
/pidfd-metadata

‎samples/seccomp/.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
bpf-direct
3-
bpf-fancy
4-
dropper
5-
user-trap
2+
/bpf-direct
3+
/bpf-fancy
4+
/dropper
5+
/user-trap

‎samples/timers/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
hpet_example
2+
/hpet_example

‎samples/vfs/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
test-fsmount
3-
test-statx
2+
/test-fsmount
3+
/test-statx

‎samples/watch_queue/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
watch_test
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
/watch_test

‎samples/watchdog/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
watchdog-simple
2+
/watchdog-simple

‎scripts/.gitignore

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
bin2c
3-
kallsyms
4-
unifdef
5-
recordmcount
6-
sorttable
7-
asn1_compiler
8-
extract-cert
9-
sign-file
10-
insert-sys-cert
2+
/asn1_compiler
3+
/bin2c
4+
/extract-cert
5+
/insert-sys-cert
6+
/kallsyms
117
/module.lds
8+
/recordmcount
9+
/sign-file
10+
/sorttable
11+
/unifdef

‎scripts/basic/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
fixdep
2+
/fixdep

‎scripts/dtc/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
dtc
3-
fdtoverlay
2+
/dtc
3+
/fdtoverlay

‎scripts/gcc-plugins/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
randomize_layout_seed.h
2+
/randomize_layout_seed.h

‎scripts/genksyms/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
genksyms
2+
/genksyms

‎scripts/mod/.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
elfconfig.h
3-
mk_elfconfig
4-
modpost
5-
devicetable-offsets.h
2+
/devicetable-offsets.h
3+
/elfconfig.h
4+
/mk_elfconfig
5+
/modpost

‎usr/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
gen_init_cpio
3-
initramfs_data.cpio
2+
/gen_init_cpio
3+
/initramfs_data.cpio
44
/initramfs_inc_data

0 commit comments

Comments
 (0)
Please sign in to comment.