Skip to content

gitignore: protect checkout-local model and texture outputs - #6171

Closed
Flyander wants to merge 1 commit into
ItsNotRexed:mainfrom
Flyander:codex/no-game-derived-directories-ignore
Closed

Flyander wants to merge 1 commit into
ItsNotRexed:mainfrom
Flyander:codex/no-game-derived-directories-ignore

Conversation

@Flyander

Copy link
Copy Markdown
Contributor

Claimed in coordination #6089.

What and why

Root-anchored /models/ and /textures/ prevent checkout-local exports and converted assets from being staged by git add .. Existing extension rules miss common model and image formats in the directories that the local gallery reads. The root anchoring leaves repository assets such as assets/logo.png available.

Tested

Windows 11, CPython 3.12.10, CPU only:

  • python -I tests/test_game_data_gitignore.py: 2 tests passed.
  • python -I tests/test_no_game_data_workflow.py: 3 tests passed.
  • python -I scripts/check_no_game_data.py: exit 0.
  • git diff --check: passed.

The regression test uses nonexistent synthetic paths with git check-ignore; no game files or GPU were used.

AI-assisted.

@Flyander

Copy link
Copy Markdown
Contributor Author

Closing this duplicate: coordinator confirmed BUILD-2029 belongs to @leozinhoszg’s finding and @cynbun’s existing PR #6148. No further work needed here; keeping the review/tests local as supporting evidence for #6148 if useful.

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