0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Problem: gitignore is messed up

Solution: optimize gitigore using patterns
 *  Categorize ignoring lists
 *  Use pattern to remove similar lists
 *  Marked source files to be tracked
This commit is contained in:
JaeSang Yoo 2020-03-14 15:33:46 +09:00
parent 656205b5f9
commit 2478887d4a

261
.gitignore vendored
View File

@ -1,19 +1,45 @@
syntax: glob # for hg-git users syntax: glob # for hg-git users
# Generated build scripts and IDE generating files
## autotools
/Makefile /Makefile
builds/Makefile builds/Makefile
builds/deprecated-msvc/Makefile builds/deprecated-msvc/Makefile
configure
doc/Makefile doc/Makefile
Makefile.in
configure
libtool libtool
libtestutil.a ### automake
libunity.a Makefile.in
.deps/
.dirstamp
### autoconf
autom4te.cache
aclocal.m4
config config
config.status config.status
config.log config.log
aclocal.m4 configure
autom4te.cache stamp-h1
## CMake
cmake-build-debug/
build/
## Android
builds/android/prefix
## IntelliJ
.idea/
## other results-like folders
bin/
lib/
obj/
## Doxygen
doxygen/
## Packaging
packaging/nuget/*.nupkg
# Test related build files
libtestutil.a
libunity.a
# Some build outputs and temporal files
*.o *.o
*.gcno *.gcno
*.gcda *.gcda
@ -28,175 +54,67 @@ autom4te.cache
*.ps *.ps
*~ *~
.*~ .*~
.deps
.dirstamp
.libs .libs
curve_keygen
test_ancillaries # /src
test_heartbeats ## Ignore generated files in configuration process
test_msg_ffn src/platform.hpp*
test_sockopt_hwm src/libzmq.pc
test_resource
test_ipc_wildcard # /tools
test_stream_empty ## Executable binaries are ignored
test_stream_timeout tools/curve_keygen
test_issue_566 ## Executable source files must be tracked
test_ctx_destroy tools/*.[ch]
test_term_endpoint tools/*.[ch]pp
test_system
test_monitor # /tests
test_last_endpoint ## Test binaries and logs are ignored
test_pair_inproc tests/test*
test_pair_ipc
test_pair_tcp
test_rebind_ipc
test_reqrep_inproc
test_reqrep_ipc
test_reqrep_tcp
test_shutdown_stress
test_hwm
test_timeo
test_reqrep_device
test_reqrep_drop
test_sub_forward
test_invalid_rep
test_msg_flags
test_ts_context
test_connect_resolve
test_immediate
test_term_endpoint
test_router_mandatory
test_disconnect_inproc
test_unbind_inproc
test_unbind_wildcard
test_raw_sock
test_disconnect_inproc
test_ctx_options
test_iov
test_security
test_security_curve
test_security_no_zap_handler
test_probe_router
test_stream
test_spec_dealer
test_spec_pushpull
test_spec_rep
test_spec_req
test_spec_router
test_req_correlate
test_req_relaxed
test_fork
test_conflate
test_inproc_connect
test_linger
test_security_null
test_security_plain
test_proxy
test_proxy_single_socket
test_proxy_terminate
test_abstract_ipc
test_filter_ipc
test_connect_delay_tipc
test_pair_tipc
test_reqrep_device_tipc
test_reqrep_tipc
test_router_handover
test_router_mandatory_tipc
test_router_notify
test_shutdown_stress_tipc
test_sub_forward_tipc
test_term_endpoint_tipc
test_many_sockets
test_diffserv
test_connect_rid
test_srcfd
test_stream_disconnect
test_proxy_chain
test_bind_src_address
test_metadata
test_id2fd
test_capabilities
test_hwm_pubsub
test_router_mandatory_hwm
test_xpub_nodrop
test_xpub_manual
test_xpub_welcome_msg
test_atomics
test_client_drop_more
test_client_server
test_server_drop_more
test_thread_safe
test_thread_safe_polling
test_getsockopt_memset
test_setsockopt
test_stream_exceeds_buffer
test_poller
test_timers
test_radio_dish
test_udp
test_scatter_gather
test_socketopt_hwm
test_use_fd
test_pub_invert_matching
test_dgram
test_base85
test_bind_after_connect_tcp
test_sodium
test_zmq_poll_fd
test_reconnect_ivl
test_address_tipc
test_app_meta
test_security_gssapi
test_security_zap
test_socket_null
test_xpub_verbose
test_mock_pub_sub
test_proxy_hwm
test_ws_transport
test_wss_transport
test_socks
test_xpub_manual_last_value
test_peer
unittest_ip_resolver
unittest_mtrie
unittest_poller
unittest_radix_tree
unittest_udp_address
unittest_ypipe
unittests/unittest_curve_encoding
tests/test*.log tests/test*.log
tests/test*.trs tests/test*.trs
## Test source files must be tracked
!tests/test*.[ch]
!tests/test*.[ch]pp
## Build script and documentations must be tracked
!tests/CMakeLists.txt
!tests/README.md
# /unittests
## Unit test binaries and logs are ignored
unittests/unittest_*
unittests/unittest*.log unittests/unittest*.log
unittests/unittest*.trs unittests/unittest*.trs
src/platform.hpp* ## Unit test source files must be tracked
src/stamp-h1 !unittests/unittest*.[ch]
local_lat !unittests/unittest*.[ch]pp
local_thr ## Build script and documentations must be tracked
remote_lat !unittests/CMakeLists.txt
remote_thr !unittests/README.md
inproc_lat
inproc_thr # check test log files
proxy_thr test-suite*.log
benchmark_radix_tree
!local_lat/ # /perf
!local_thr/ ## Benchmarking binaries and result files are ignored
!remote_lat/ perf/*_lat
!remote_thr/ perf/*_thr
!inproc_lat/ perf/benchmark_*
!inproc_thr/ perf/results
!benchmark_radix_tree/ ## Benchmarking source files must be tracked
doc/*.1 !perf/*.[ch]
doc/*.3 !perf/*.[ch]pp
doc/*.7 ## Benchmarking tool scripts must be tracked
!perf/*.py
!perf/*.sh
# /doc
## Generated document files
doc/*.[137]
doc/*.html doc/*.html
doc/*.xml doc/*.xml
doxygen/
src/libzmq.pc # external libraries and release archive files
bin/
lib/
obj/
builds/android/prefix/
packaging/nuget/*.nupkg
foreign/openpgm/* foreign/openpgm/*
!foreign/openpgm/*.tar.bz2 !foreign/openpgm/*.tar.bz2
!foreign/openpgm/*.tar.gz !foreign/openpgm/*.tar.gz
@ -204,7 +122,4 @@ foreign/openpgm/*
zeromq-*.tar.gz zeromq-*.tar.gz
zeromq-*.zip zeromq-*.zip
core core
build
test-suite.log
.idea/
cmake-build-debug/