Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 2 additions & 88 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
6 changes: 6 additions & 0 deletions platform/broadcom/saibcm-modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
*.debhelper
*.substvars
*.ko

build-arch-stamp
build/
configure-stamp
debian/files
debian/opennsl-modules/
3 changes: 3 additions & 0 deletions platform/broadcom/sonic-platform-modules-dell/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ dkms.conf
*.postrm.debhelper
*.prerm.debhelper
*.substvars

# Cloned source repositories
tools/flashrom/
3 changes: 3 additions & 0 deletions src/bash/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is repeated in many places? Can you remove?

Copy link
Contributor Author

@jleveque jleveque Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's technically not necessary since the .gitignore file is itself added. I added it in all the files because I assume in the future, if someone adds a new directory they will use one of the existing .gitignore files as a template. However, If the file doesn't un-ignore itself, it will not show up in their list of modified files, so it will not get added to their commit and may get overlooked. They would need to make sure to explicitly add the new .gitignore file.

I can simply remove them all if you prefer.

!Makefile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you need unignore? Who ignore it at first place?

Copy link
Contributor Author

@jleveque jleveque Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first line, * ignores everything, then we un-ignore the Makefile here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore everything? That will make things complex.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we only want to commit the Makefile. We don't care about the generated files, and if the generated files change, we will need to update this. This way, we never need to update it unless we need to add any files.

5 changes: 5 additions & 0 deletions src/dhcpmon/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
debian/*
!debian/changelog
!debian/compat
!debian/control
!debian/rules
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge them into one line rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with the above, these are inverse ignore rules. We ignore all, then un-ignore the files we want to keep. Otherwise, there would be more lines :)

Copy link
Collaborator

@qiluo-msft qiluo-msft Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debian/* make things complex. Could you just ignore what you want to ignore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree. There are more files we want to ignore than the number we want to commit.

3 changes: 3 additions & 0 deletions src/hiredis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
1 change: 1 addition & 0 deletions src/ifupdown2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ifupdown2-1.2.8-1/
3 changes: 3 additions & 0 deletions src/initramfs-tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
3 changes: 3 additions & 0 deletions src/iproute2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/iptables/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
4 changes: 4 additions & 0 deletions src/isc-dhcp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who ignored it?

Copy link
Contributor Author

@jleveque jleveque Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first line, * ignores everything, then we un-ignore the Makefile and patch directory here.

3 changes: 3 additions & 0 deletions src/ixgbe/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/kdump-tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
5 changes: 5 additions & 0 deletions src/libnl3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!.gitignore
!debian/
debian/libnl-*/
!Makefile
3 changes: 3 additions & 0 deletions src/libteam/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
3 changes: 3 additions & 0 deletions src/libyang/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/lldpd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
3 changes: 3 additions & 0 deletions src/lm-sensors/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/monit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
3 changes: 3 additions & 0 deletions src/mpdecimal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
3 changes: 3 additions & 0 deletions src/python-click/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
3 changes: 3 additions & 0 deletions src/python3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/radvd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
3 changes: 3 additions & 0 deletions src/redis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/sflow/hsflowd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
8 changes: 8 additions & 0 deletions src/sflow/psample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*
!.gitignore
!debian/changelog
!debian/compat
!debian/control
!debian/psample.install
!debian/rules
!Makefile
8 changes: 8 additions & 0 deletions src/sflow/sflowtool/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*
!.gitignore
!debian/changelog
!debian/compat
!debian/control
!debian/sflowtool.install
!debian/rules
!Makefile
3 changes: 3 additions & 0 deletions src/smartmontools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
3 changes: 3 additions & 0 deletions src/snmpd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
4 changes: 4 additions & 0 deletions src/socat/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
2 changes: 2 additions & 0 deletions src/sonic-device-data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/debian
src/device
57 changes: 57 additions & 0 deletions src/sonic-yang-mgmt/.gitignore
Original file line number Diff line number Diff line change
@@ -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 changes: 59 additions & 0 deletions src/sonic-yang-models/.gitignore
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions src/supervisor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/
3 changes: 3 additions & 0 deletions src/swig/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!Makefile
6 changes: 6 additions & 0 deletions src/systemd-sonic-generator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
systemd-sonic-generator
debian/*
!debian/changelog
!debian/compat
!debian/control
!debian/rules
8 changes: 8 additions & 0 deletions src/tacacs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*
!.gitignore
nsm/*
!nsm/Makefile
!nsm/*.patch
pam/*
!pam/Makefile
!pam/*.patch
4 changes: 4 additions & 0 deletions src/thrift/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!patch/