Skip to content

Commit 9b59170

Browse files
committed
Narrow gitignore for versioned native extension dirs
Only ignore lib/code_ownership/<major.minor>/ so new Ruby source files under lib/code_ownership/* aren't accidentally hidden.
1 parent 3c5f088 commit 9b59170

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
/vendor
1111

1212
# Locally-built native extensions (installed into versioned directories)
13-
/lib/code_ownership/*/
13+
# Keep this narrowly scoped so we don't accidentally ignore real Ruby source dirs
14+
# like lib/code_ownership/private/.
15+
/lib/code_ownership/[0-9]*.[0-9]*/
1416

1517
Gemfile.lock
1618

0 commit comments

Comments
 (0)