chore: ignore b2's output directories - #108
Merged
Merged
Conversation
`.gitignore` covered `build/`, which is where CMake puts its tree, but not `bin/`, which is where b2 puts its own. b2 makes one per project that has targets, so after a `b2 test` run the working tree carries untracked object trees at the root and under test/, test/dynamic_loading/ and each test/implicit_shared_libraries/ variant. Untracked but addable is the awkward part: `git add test` or `git add -A` sweeps them in, and a single such commit runs to tens of thousands of lines of `.o` files. Nothing warns, because nothing is wrong until it is committed. `doc/node_modules`, the equivalent for the Antora build, is already covered by doc/.gitignore. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQa4fuiwcfsheZYTCyfPPr
|
An automated preview of the documentation is available at https://108.openmethod.prtest3.cppalliance.org/libs/openmethod/doc/html/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-09-12 16:17:06 UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #108 +/- ##
===========================================
+ Coverage 93.46% 93.52% +0.05%
===========================================
Files 22 22
Lines 1653 1683 +30
Branches 500 508 +8
===========================================
+ Hits 1545 1574 +29
Misses 64 64
- Partials 44 45 +1 see 3 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(Written by Claude Code, on behalf of @jll63.)
.gitignorecoversbuild/, where CMake puts its tree, but notbin/, where b2 puts itsown. b2 makes one per project that has targets, so after a
b2 testrun the working treecarries untracked object trees in five places:
Untracked but addable is the awkward part:
git add testorgit add -Asweeps them in,and one such commit runs to tens of thousands of lines of
.ofiles. Nothing warns, becausenothing is wrong until it is committed. I managed exactly that twice while preparing #107 —
400 files and ~63,000 insertions each time — caught both from the diffstat and rebuilt the
commits, but the trap is worth closing rather than remembering.
doc/node_modules, the equivalent for the Antora build, is already covered bydoc/.gitignore.Verification
bin/component (git ls-files | grep -E '(^|/)bin/'is empty), so the pattern hides nothing that is meant to be versioned.b2 test: with the pattern,git status --porcelainreports 0 untracked entries; without it, 5.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQa4fuiwcfsheZYTCyfPPr