Skip to content

Ignore a fit's run log wherever it was launched from - #722

Merged
wshlavacek merged 1 commit into
mainfrom
gitignore-root-fit-logs
Sep 16, 2026
Merged

wshlavacek merged 1 commit into
mainfrom
gitignore-root-fit-logs

Conversation

@wshlavacek

Copy link
Copy Markdown
Collaborator

.gitignore covered bnf_*.log under examples/ and one level under benchmarks/ — the two places a stray run log had been noticed — but not the repository root. A fit launched from the root leaves bnf_<timestamp>.log there and it shows up as an untracked file; two did while measuring #696.

One rule for every directory replaces the two location-specific ones, rather than adding a third that would be followed by a fourth. These are runtime logs, none has ever been committed, and git ls-files | git check-ignore --stdin is empty against the broader pattern, so nothing tracked is shadowed.

Verified that a log at the repository root, under examples/tutorial/, and under benchmarks/stochastic_recovery/ is ignored.

.gitignore covered bnf_*.log under examples/ and one level under benchmarks/,
which is where a stray run log had been noticed, but not the repository root. A
fit launched from the root leaves bnf_<timestamp>.log there and it shows up as an
untracked file, as two did while measuring #696.

One rule for every directory replaces the two location-specific ones rather than
adding a third. These are runtime logs: none has ever been committed, and nothing
currently tracked matches the broader pattern.
@wshlavacek
wshlavacek merged commit c11692a into main Sep 16, 2026
5 checks passed
@wshlavacek
wshlavacek deleted the gitignore-root-fit-logs branch September 16, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant