From 1631cedcf3e75756eb057bc1acc6ab68b48c2ca7 Mon Sep 17 00:00:00 2001 From: jedarden Date: Sun, 5 Jul 2026 17:11:57 -0400 Subject: [PATCH] ci(bf-58sdn): extend .gitignore to prevent debris tracking Added comprehensive, well-organized rules to prevent tracking of: - Compiled binaries and build artifacts (*.rlib, debug_*, test_*, gen_*) - Scratch and temporary output files (*.ppm, mod, out.pdf, scratch/) - Backup and editor temporary files (*.bak*, *.bak.*, *~, *.swp, *.tmp) - Generated fixture source files (gen_*.rs in tests/, excluding xtask/) Rules are categorized by type for maintainability and specificity to avoid ignoring legitimate source files. --- .gitignore | 66 +++++++++++++++++++++++++++++++++-------- .needle-predispatch-sha | 2 +- 2 files changed, 55 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 14ca436..852582c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,26 +11,68 @@ memory-report.json # Proptest regressions are committed (minimal counterexamples) # but the .gitkeep keeps the directory in git +# ============================================================================ +# Compiled binaries and build artifacts +# ============================================================================ + +# Compiled libraries +*.rlib + # Compiled binaries in repo root debug_* test_* gen_fixtures gen_ocr_fixtures -# Compiled libraries -*.rlib - -# Scratch output files -0 ---1.ppm -mod -out.pdf - -# Backup files -*.bak - # Compiled binaries in tests/fixtures/ tests/fixtures/gen_fixtures tests/fixtures/gen_ocr_fixtures tests/fixtures/gen_suspects* tests/fixtures/gen_unmapped* + +# Temporary fixture generators in test directories +tests/*/gen_*.py +tests/*/gen_*.rs +tests/*/*/gen_*.py +tests/*/*/gen_*.rs + +# ============================================================================ +# Scratch and temporary output files +# ============================================================================ + +# Scratch output files in repo root +0 +--1.ppm +mod +out.pdf + +# Common scratch output patterns +*.ppm +scratch/*.txt +scratch/*.pdf +scratch/*.bin + +# ============================================================================ +# Backup and editor temporary files +# ============================================================================ + +# Backup files (any extension) +*.bak +*.bak* +*.bak.* +*~ + +# Editor temp files +.*.swp +*.swp +*.swo +*.tmp +.*.tmp* + +# ============================================================================ +# Generated source files (temporary generators) +# ============================================================================ + +# Generated fixture source files (keep generators, ignore generated sources) +gen_*.rs +!xtask/src/bin/gen_*.rs # Keep xtask generators diff --git a/.needle-predispatch-sha b/.needle-predispatch-sha index 425c9de..f676ecd 100644 --- a/.needle-predispatch-sha +++ b/.needle-predispatch-sha @@ -1 +1 @@ -16d93b0feb47c2411ef6b924bb7c504eeb97a497 +c7a2d47dccc929958f4f860a52817269400a72df