Browse Source

[.gitignore] Remove * from .gitignore files

Plain wildcards `*` in .gitignore are considered a bad practice
because they may cause unintended ignore of files. This commit
replaces `*` with explicit lists of file names.
Isaku Yamahata 4 years ago
parent
commit
ff0fd4d0fd

+ 2 - 6
.gitignore

@@ -5,12 +5,6 @@
 \#*#
 *~
 
-/Runtime/*
-!/Runtime/Makefile
-!/Runtime/pal_loader
-/Jenkinsfiles/Jenkinsfile-*
-/Jenkinsfiles/JenkinsfileSGX-*
-
 .lib
 *.i
 *.s
@@ -22,11 +16,13 @@ pal.map
 *.a
 *.o
 *.so
+*.so.*
 
 # python
 *.pyc
 
 # sgx
+*.manifest.sgx
 *.sig
 *.token
 *.cached

+ 2 - 0
Jenkinsfiles/.gitignore

@@ -0,0 +1,2 @@
+/Jenkinsfile-*
+/JenkinsfileSGX-*

+ 0 - 3
LibOS/shim/test/.gitignore

@@ -1,3 +0,0 @@
-*.manifest
-*.manifest.sgx
-pal_loader

+ 5 - 1
LibOS/shim/test/benchmark/.gitignore

@@ -1,5 +1,9 @@
-/fork_latency
+/*.manifest
+
 /manifest
+/pal_loader
+
+/fork_latency
 /rpc_latency
 /rpc_latency2
 /sig_latency

+ 18 - 14
LibOS/shim/test/fs/.gitignore

@@ -1,15 +1,19 @@
-copy_mmap_rev
-copy_mmap_seq
-copy_mmap_whole
-copy_rev
-copy_seq
-copy_whole
-delete
-manifest
-open_close
-read_write
-seek_tell
-stat
-truncate
-*.xml
+/*.manifest
+/*.xml
+
+/manifest
+/pal_loader
+
+/copy_mmap_rev
+/copy_mmap_seq
+/copy_mmap_whole
+/copy_rev
+/copy_seq
+/copy_whole
+/delete
+/open_close
+/read_write
+/seek_tell
+/stat
+/truncate
 /.cache

+ 8 - 8
LibOS/shim/test/inline/.gitignore

@@ -1,8 +1,8 @@
-*
-!.gitignore
-!*.c
-!*.cpp
-!*.py
-!*.sh
-!*.template
-!Makefile*
+/*.manifest
+
+/manifest
+/pal_loader
+
+/fork
+/helloworld
+/vfork

+ 56 - 8
LibOS/shim/test/native/.gitignore

@@ -1,8 +1,56 @@
-*
-!.gitignore
-!*.c
-!*.cpp
-!*.py
-!*.sh
-!*.template
-!Makefile*
+/*.manifest
+
+/manifest
+/pal_loader
+
+/alarm
+/brk
+/clone
+/condvar
+/cpuinfo
+/dir
+/divzero
+/dup
+/epoll
+/epoll_socket
+/errno
+/exec_fork
+/file
+/fork
+/fork_bomb
+/fork_exec
+/fs
+/futextest
+/get_time
+/helloworld
+/helloworld_pthread
+/kill
+/malloc
+/meminfo
+/msg_create
+/msg_create_libos
+/msg_send
+/msg_send_libos
+/multiproc
+/multisleep
+/pause
+/pid_alloc
+/pid_kill
+/pipe
+/pipe_latency
+/readdir
+/rename
+/script
+/sem
+/sleep
+/socketpair
+/sqrt
+/start
+/sync
+/system
+/tcp
+/test_start_pthread_m
+/testfile
+/time
+/vfork
+/vfork_exec

+ 68 - 8
LibOS/shim/test/regression/.gitignore

@@ -1,8 +1,68 @@
-*
-!.gitignore
-!*.c
-!*.cpp
-!*.py
-!*.sh
-!*.template
-!Makefile*
+/*.manifest
+/*.xml
+
+/manifest
+/pal_loader
+
+/.cache
+/abort
+/abort_multithread
+/bootstrap
+/bootstrap-c++
+/bootstrap_pie
+/bootstrap_static
+/epoll_wait_timeout
+/eventfd
+/exec
+/exec_invalid_args
+/exec_same
+/exec_victim
+/exit
+/exit_group
+/fdleak
+/file_check_policy
+/file_size
+/fopen_cornercases
+/fork_and_exec
+/fstat_cwd
+/futex
+/futex-timeout
+/futex_bitset
+/futex_requeue
+/futex_timeout
+/futex_wake_op
+/getcwd
+/getdents
+/getsockopt
+/host_root_fs
+/init_fail
+/large-mmap
+/large_dir_read
+/mmap-file
+/mprotect_file_fork
+/multi_pthread
+/openmp
+/poll
+/poll_many_types
+/ppoll
+/proc
+/proc-path
+/proc_cpuinfo
+/pselect
+/readdir
+/sched
+/select
+/shared_object
+/sigaltstack
+/sigprocmask
+/spinlock
+/stat_invalid_args
+/str_close_leak
+/syscall
+/testfile
+/tmp
+/tcp_ipv6_v6only
+/tcp_msg_peek
+/udp
+/unix
+/vfork_and_exec

+ 0 - 2
Pal/.gitignore

@@ -1,2 +0,0 @@
-*.run
-.nfs*

+ 38 - 8
Pal/regression/.gitignore

@@ -1,8 +1,38 @@
-*
-!.gitignore
-!*.c
-!*.cpp
-!*.py
-!*.sh
-!*.template
-!Makefile*
+/*.tmp
+/*.xml
+/*.manifest
+
+/manifest
+/pal_loader
+
+/.cache
+/..Bootstrap
+/AtomicMath
+/Attestation
+/AvxDisable
+/Bootstrap
+/Bootstrap2
+/Bootstrap3
+/Bootstrap7
+/Directory
+/Event
+/Exception
+/Exit
+/File
+/Hex
+/Memory
+/Misc
+/Pipe
+/Preload1.so
+/Preload2.so
+/Process
+/Process2
+/Process3
+/Semaphore
+/SendHandle
+/Socket
+/Symbols
+/Thread
+/Thread2
+/nonelf_binary
+/normalize_path

+ 0 - 3
Pal/src/.gitignore

@@ -1,3 +0,0 @@
-/host_endian.h
-/pal
-/Makefile.Status

+ 30 - 8
Pal/test/.gitignore

@@ -1,8 +1,30 @@
-*
-!.gitignore
-!*.c
-!*.cpp
-!*.py
-!*.sh
-!*.template
-!Makefile*
+/*.manifest
+
+/manifest
+/pal_loader
+
+/Cpuid
+/Event
+/Exception
+/Failure
+/File
+/Fork
+/HandleSend
+/HelloWorld
+/Memory
+/Pie
+/Pipe
+/Process
+/Segment
+/Select
+/Server
+/Sleep
+/Tcp
+/Thread
+/Udp
+/Wait
+/Yield
+
+/test_file_0
+/test_file_1
+/test_file_2

+ 3 - 0
Runtime/.gitignore

@@ -0,0 +1,3 @@
+/pal-Linux
+/pal-Linux-SGX
+/pal_gdb-Linux-SGX