aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2020-09-20 22:59:10 -0700
committerPeter Wu <peter@lekensteyn.nl>2020-09-27 21:36:15 +0000
commit330fd5733c64832d8b1740f8f1a4565f4ef63f38 (patch)
tree576dd35163f0489ed0afdce00061e1a9d0e5cf25 /.gitignore
parent08ab0e5d1f5fb2f0547bf02b8990d2a48f29b1f0 (diff)
Add /*build*/ to .gitignore
A common pattern is to build the source artifacts within a *build* dir. For example, the wiki instructions for [building `wireshark` on `macOS` specify to create a `./build` directory](https://gitlab.com/wireshark/wireshark/-/wikis/BuildingAndInstalling#macos): ``` mkdir build && cd build && cmake ../ && make ``` So this commit adds this directory to `.gitignore` to prevent accidentally committing build artifacts. The specific format `/*build*/` protects against the following: 1. The leading slash makes sure only top-level directories that match this pattern are ignored. 2. The trailing slash makes sure that only directories (and not files) are ignored. 3. The wildcards catch all the various variations on `build` folder name that are used...
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 04a3e9ecde..3d7e989d29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,7 +57,7 @@ wireshark-tap-register.c
# CMake #
##################
-cmake-build-*/
+/*build*/
CMakeCache.txt
CMakeFiles
CMakeLists.txt.user*