From 89691ff781b9f5b1f39068e6cccfc2dda18db3d1 Mon Sep 17 00:00:00 2001 From: Bili Dong Date: Tue, 4 Jun 2024 10:39:34 -0700 Subject: [PATCH] Clean up some .gitignore patterns (#1256) - Use `build/` instead of `build/*` in the root `.gitignore` so it could cover subdirectory cases recursively. - Remove `/*.pcap` patterns from subdirectories because root `.gitignore` already contains `*.pcap`. --- .gitignore | 2 +- targets/l2_switch/.gitignore | 2 -- targets/l2_switch/learn_client/.gitignore | 1 - targets/psa_switch/.gitignore | 2 -- targets/simple_router/.gitignore | 2 -- targets/simple_switch/.gitignore | 2 -- tests/.gitignore | 1 - 7 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 7c762859b..97a0b2c38 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ # Python byte code *.pyc -build/* +build/ lib* # Vim diff --git a/targets/l2_switch/.gitignore b/targets/l2_switch/.gitignore index e6a706f74..209bcc1e8 100644 --- a/targets/l2_switch/.gitignore +++ b/targets/l2_switch/.gitignore @@ -1,3 +1 @@ -/build /l2_switch -/*.pcap diff --git a/targets/l2_switch/learn_client/.gitignore b/targets/l2_switch/learn_client/.gitignore index 825df4e9a..14ba80808 100644 --- a/targets/l2_switch/learn_client/.gitignore +++ b/targets/l2_switch/learn_client/.gitignore @@ -1,2 +1 @@ -/build /learn_client diff --git a/targets/psa_switch/.gitignore b/targets/psa_switch/.gitignore index 41c5b75bd..65c6b582b 100644 --- a/targets/psa_switch/.gitignore +++ b/targets/psa_switch/.gitignore @@ -1,5 +1,3 @@ -/build /psa_switch -/*.pcap pswitch_runtime psa_switch_CLI diff --git a/targets/simple_router/.gitignore b/targets/simple_router/.gitignore index b42b137a9..ea1731928 100644 --- a/targets/simple_router/.gitignore +++ b/targets/simple_router/.gitignore @@ -1,3 +1 @@ -/build /simple_router -/*.pcap diff --git a/targets/simple_switch/.gitignore b/targets/simple_switch/.gitignore index 0d7c40b5c..ce69ac79f 100644 --- a/targets/simple_switch/.gitignore +++ b/targets/simple_switch/.gitignore @@ -1,5 +1,3 @@ -/build /simple_switch -/*.pcap sswitch_runtime simple_switch_CLI diff --git a/tests/.gitignore b/tests/.gitignore index b638bde54..ed72f547b 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,4 +1,3 @@ -build/ test* !test*.cpp !stress_tests*