Skip to content

fix, harden .gitignore against build artifacts and tooling noise #202

@steven-varga

Description

@steven-varga

Problem

The current .gitignore only covers build (exact name) and build-*/ (added in 42cd084), leaving a wide class of CMake output directories, IDE tooling files, and coverage artifacts unprotected. This caused build-verify/ to be committed in #170 and required a 1114-file removal commit to clean staging.

Root cause

  • build (exact) → does not match build-cov/, build-test/, build-clang/, build-msvc/, etc.
  • No coverage patterns (*.gcov, htmlcov/, *.gcda, *.gcno)
  • No CMake standalone artifacts (CMakeCache.txt, cmake_install.cmake, CTestTestfile.cmake, Testing/, install_manifest.txt)
  • No tooling files (compile_commands.json, .clangd/, cscope.*, tags, TAGS, .DS_Store, Thumbs.db)
  • No cross-compile cache (.xwin-cache/)

Fix (two commits)

  1. git rm --cached any tracked files that the updated ignore rules would now cover.
  2. Rewrite .gitignore with comprehensive patterns covering all of the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions