From 497683b315c0fb842a6ce528f9c4ec88f4b8ff2a Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Fri, 16 Aug 2019 00:08:08 +1000
Subject: [PATCH] gitignore: Put build-*/ pattern in top-level gitignore file.

---
 .gitignore             | 3 ++-
 ports/nrf/.gitignore   | 5 -----
 ports/stm32/.gitignore | 1 -
 ports/unix/.gitignore  | 6 ------
 4 files changed, 2 insertions(+), 13 deletions(-)
 delete mode 100644 ports/stm32/.gitignore

diff --git a/.gitignore b/.gitignore
index 5e841a89c..50bd30e87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,9 +20,10 @@
 ######################
 *.swp
 
-# Build directory
+# Build directories
 ######################
 build/
+build-*/
 
 # Test failure outputs
 ######################
diff --git a/ports/nrf/.gitignore b/ports/nrf/.gitignore
index ace93515a..4b46e0586 100644
--- a/ports/nrf/.gitignore
+++ b/ports/nrf/.gitignore
@@ -1,8 +1,3 @@
 # Nordic files
 #####################
 drivers/bluetooth/s1*/
-
-# Build files
-#####################
-build-*/
-
diff --git a/ports/stm32/.gitignore b/ports/stm32/.gitignore
deleted file mode 100644
index 414487d53..000000000
--- a/ports/stm32/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-build-*/
diff --git a/ports/unix/.gitignore b/ports/unix/.gitignore
index 706b7732d..7179e7bde 100644
--- a/ports/unix/.gitignore
+++ b/ports/unix/.gitignore
@@ -1,9 +1,3 @@
-build
-build-fast
-build-minimal
-build-coverage
-build-nanbox
-build-freedos
 micropython
 micropython_fast
 micropython_minimal
-- 
GitLab