Reorganize .gitignore files (#4707)
- Add .gitignore files in each subdirectory of src/, so as to reduce the size of the .gitignore file in the project root, and also make it easier to maintain (i.e., if a directory in src/ is removed, there will not be outdated entries in the root .gitignore file. - Also add missing .gitignore entries and remove outdated entries and duplicates.
This commit is contained in:
parent
f31eabb5ee
commit
c6365e7abe
90
.gitignore
vendored
90
.gitignore
vendored
@ -20,94 +20,6 @@ target/
|
||||
*dbg.j2
|
||||
*.img
|
||||
|
||||
# Subdirectories in src
|
||||
src/bash/*
|
||||
!src/bash/Makefile
|
||||
src/dhcpmon/debian/*
|
||||
!src/dhcpmon/debian/changelog
|
||||
!src/dhcpmon/debian/compat
|
||||
!src/dhcpmon/debian/control
|
||||
!src/dhcpmon/debian/rules
|
||||
src/ixgbe/*
|
||||
!src/ixgbe/Makefile
|
||||
src/isc-dhcp/*
|
||||
!src/isc-dhcp/Makefile
|
||||
!src/isc-dhcp/patch
|
||||
src/socat/*
|
||||
!src/socat/Makefile
|
||||
!src/socat/*.patch
|
||||
src/tacacs/*
|
||||
src/tacacs/nsm/*
|
||||
src/tacacs/pam/*
|
||||
!src/tacacs/nsm/Makefile
|
||||
!src/tacacs/nsm/*.patch
|
||||
!src/tacacs/pam/Makefile
|
||||
!src/tacacs/pam/*.patch
|
||||
src/hiredis/*
|
||||
!src/hiredis/Makefile
|
||||
src/igb/*
|
||||
!src/igb/Makefile
|
||||
src/initramfs-tools/*
|
||||
!src/initramfs-tools/Makefile
|
||||
src/iproute2/*
|
||||
!src/iproute2/Makefile
|
||||
src/isc-dhcp/*
|
||||
!src/isc-dhcp/Makefile
|
||||
!src/isc-dhcp/patch/
|
||||
src/libnl3/*
|
||||
!src/libnl3/debian
|
||||
src/libnl3/debian/libnl-*/
|
||||
!src/libnl3/Makefile
|
||||
src/libteam/*
|
||||
!src/libteam/Makefile
|
||||
src/libyang/*
|
||||
!src/libyang/Makefile
|
||||
src/lldpd/*
|
||||
!src/lldpd/Makefile
|
||||
!src/lldpd/patch/
|
||||
src/lm-sensors/*
|
||||
!src/lm-sensors/Makefile
|
||||
src/monit/*
|
||||
!src/monit/Makefile
|
||||
!src/monit/patch/
|
||||
src/mpdecimal/*
|
||||
!src/mpdecimal/Makefile
|
||||
src/python-click/*
|
||||
!src/python-click/Makefile
|
||||
src/python3/*
|
||||
!src/python3/Makefile
|
||||
src/radvd/*
|
||||
!src/radvd/Makefile
|
||||
!src/radvd/patch/
|
||||
src/redis/*
|
||||
!src/redis/Makefile
|
||||
src/smartmontools/*
|
||||
!src/smartmontools/Makefile
|
||||
src/snmpd/*
|
||||
!src/snmpd/Makefile
|
||||
src/sonic-device-data/src/device/
|
||||
src/sonic-device-data/src/debian/
|
||||
src/supervisor/*
|
||||
!src/supervisor/Makefile
|
||||
!src/supervisor/patch/
|
||||
src/swig/*
|
||||
!src/swig/Makefile
|
||||
src/systemd-sonic-generator/systemd-sonic-generator
|
||||
src/systemd-sonic-generator/debian/*
|
||||
!src/systemd-sonic-generator/debian/changelog
|
||||
!src/systemd-sonic-generator/debian/compat
|
||||
!src/systemd-sonic-generator/debian/control
|
||||
!src/systemd-sonic-generator/debian/rules
|
||||
src/telemetry/debian/*
|
||||
!src/telemetry/debian/changelog
|
||||
!src/telemetry/debian/compat
|
||||
!src/telemetry/debian/control
|
||||
!src/telemetry/debian/rules
|
||||
!src/telemetry/debian/telemetry.init.d
|
||||
src/thrift/*
|
||||
!src/thrift/patch/
|
||||
!src/thrift/Makefile
|
||||
|
||||
# Autogenerated Dockerfiles
|
||||
sonic-slave*/Dockerfile
|
||||
dockers/*/Dockerfile
|
||||
@ -125,6 +37,8 @@ src/sonic-daemon-base/build
|
||||
src/sonic-daemon-base/sonic_daemon_base.egg-info
|
||||
|
||||
# Misc. files
|
||||
asic_config_checksum
|
||||
files/Aboot/boot0
|
||||
files/initramfs-tools/arista-convertfs
|
||||
files/initramfs-tools/union-mount
|
||||
|
||||
|
6
platform/broadcom/saibcm-modules/.gitignore
vendored
6
platform/broadcom/saibcm-modules/.gitignore
vendored
@ -2,3 +2,9 @@
|
||||
*.debhelper
|
||||
*.substvars
|
||||
*.ko
|
||||
|
||||
build-arch-stamp
|
||||
build/
|
||||
configure-stamp
|
||||
debian/files
|
||||
debian/opennsl-modules/
|
||||
|
@ -48,3 +48,6 @@ dkms.conf
|
||||
*.postrm.debhelper
|
||||
*.prerm.debhelper
|
||||
*.substvars
|
||||
|
||||
# Cloned source repositories
|
||||
tools/flashrom/
|
||||
|
3
src/bash/.gitignore
vendored
Normal file
3
src/bash/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
5
src/dhcpmon/.gitignore
vendored
Normal file
5
src/dhcpmon/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
debian/*
|
||||
!debian/changelog
|
||||
!debian/compat
|
||||
!debian/control
|
||||
!debian/rules
|
3
src/hiredis/.gitignore
vendored
Normal file
3
src/hiredis/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
1
src/ifupdown2/.gitignore
vendored
Normal file
1
src/ifupdown2/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
ifupdown2-1.2.8-1/
|
3
src/initramfs-tools/.gitignore
vendored
Normal file
3
src/initramfs-tools/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
3
src/iproute2/.gitignore
vendored
Normal file
3
src/iproute2/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/iptables/.gitignore
vendored
Normal file
4
src/iptables/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
4
src/isc-dhcp/.gitignore
vendored
Normal file
4
src/isc-dhcp/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
3
src/ixgbe/.gitignore
vendored
Normal file
3
src/ixgbe/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/kdump-tools/.gitignore
vendored
Normal file
4
src/kdump-tools/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
5
src/libnl3/.gitignore
vendored
Normal file
5
src/libnl3/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
*
|
||||
!.gitignore
|
||||
!debian/
|
||||
debian/libnl-*/
|
||||
!Makefile
|
3
src/libteam/.gitignore
vendored
Normal file
3
src/libteam/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
3
src/libyang/.gitignore
vendored
Normal file
3
src/libyang/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/lldpd/.gitignore
vendored
Normal file
4
src/lldpd/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
3
src/lm-sensors/.gitignore
vendored
Normal file
3
src/lm-sensors/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/monit/.gitignore
vendored
Normal file
4
src/monit/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
3
src/mpdecimal/.gitignore
vendored
Normal file
3
src/mpdecimal/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
3
src/python-click/.gitignore
vendored
Normal file
3
src/python-click/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
3
src/python3/.gitignore
vendored
Normal file
3
src/python3/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/radvd/.gitignore
vendored
Normal file
4
src/radvd/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
3
src/redis/.gitignore
vendored
Normal file
3
src/redis/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/sflow/hsflowd/.gitignore
vendored
Normal file
4
src/sflow/hsflowd/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
8
src/sflow/psample/.gitignore
vendored
Normal file
8
src/sflow/psample/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*
|
||||
!.gitignore
|
||||
!debian/changelog
|
||||
!debian/compat
|
||||
!debian/control
|
||||
!debian/psample.install
|
||||
!debian/rules
|
||||
!Makefile
|
8
src/sflow/sflowtool/.gitignore
vendored
Normal file
8
src/sflow/sflowtool/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*
|
||||
!.gitignore
|
||||
!debian/changelog
|
||||
!debian/compat
|
||||
!debian/control
|
||||
!debian/sflowtool.install
|
||||
!debian/rules
|
||||
!Makefile
|
3
src/smartmontools/.gitignore
vendored
Normal file
3
src/smartmontools/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
3
src/snmpd/.gitignore
vendored
Normal file
3
src/snmpd/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
4
src/socat/.gitignore
vendored
Normal file
4
src/socat/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
2
src/sonic-device-data/.gitignore
vendored
Normal file
2
src/sonic-device-data/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
src/debian
|
||||
src/device
|
57
src/sonic-yang-mgmt/.gitignore
vendored
Normal file
57
src/sonic-yang-mgmt/.gitignore
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
59
src/sonic-yang-models/.gitignore
vendored
Normal file
59
src/sonic-yang-models/.gitignore
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
yang-models/sonic_yang_tree
|
4
src/supervisor/.gitignore
vendored
Normal file
4
src/supervisor/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
3
src/swig/.gitignore
vendored
Normal file
3
src/swig/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
6
src/systemd-sonic-generator/.gitignore
vendored
Normal file
6
src/systemd-sonic-generator/.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
systemd-sonic-generator
|
||||
debian/*
|
||||
!debian/changelog
|
||||
!debian/compat
|
||||
!debian/control
|
||||
!debian/rules
|
8
src/tacacs/.gitignore
vendored
Normal file
8
src/tacacs/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*
|
||||
!.gitignore
|
||||
nsm/*
|
||||
!nsm/Makefile
|
||||
!nsm/*.patch
|
||||
pam/*
|
||||
!pam/Makefile
|
||||
!pam/*.patch
|
4
src/thrift/.gitignore
vendored
Normal file
4
src/thrift/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!patch/
|
Loading…
Reference in New Issue
Block a user