Commit 330fd573 authored by Jeff Widman's avatar Jeff Widman Committed by Peter Wu

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...
parent 08ab0e5d
Pipeline #195105954 passed with stages
in 44 minutes and 38 seconds
......@@ -57,7 +57,7 @@ wireshark-tap-register.c
# CMake #
##################
cmake-build-*/
/*build*/
CMakeCache.txt
CMakeFiles
CMakeLists.txt.user*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment