Skip to content

Commit a60838e

Browse files
author
Ralph Kuepper
committed
chore: gitignore example binaries by extension, not by the name 'main'
The rule was examples/**/main.exe | main | main.app, which assumed every example compiles to `main`. The world-viewer compiles to world-viewer.exe, so it matched nothing, got committed at 26 MB, and was one merge away from being in main's history forever (where deleting it later would not have removed it -- the blob stays reachable). Match by extension instead. The .exe itself is dropped from this branch's commits in the same push, so the blob never reaches main.
1 parent 5e228fa commit a60838e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ examples/intel-sponza/assets/outdoor.hdr
7676
*.actual.png
7777

7878
# Compiled example binaries — build artifacts, never commit.
79-
examples/**/main.exe
79+
# Match by EXTENSION, not by the name `main`: this list used to be main.exe /
80+
# main / main.app, which assumed every example compiles to `main`. The
81+
# world-viewer compiles to world-viewer.exe, sailed straight through, and a
82+
# 26 MB binary was committed and very nearly merged to main.
83+
examples/**/*.exe
84+
examples/**/*.pdb
8085
examples/**/main
8186
examples/**/main.app
8287

0 commit comments

Comments
 (0)