Skip to content

Stop local paper renders from being stageable into a public repo - #621

Open
xmap wants to merge 1 commit into
mainfrom
chore/ignore-local-scratch
Open

Stop local paper renders from being stageable into a public repo#621
xmap wants to merge 1 commit into
mainfrom
chore/ignore-local-scratch

Conversation

@xmap

@xmap xmap commented Aug 9, 2026

Copy link
Copy Markdown
Owner

What

Adds tmp/ to .gitignore.

Why

Reviewing a paper render rasterizes its PDF into page images under
tmp/pdfs/. Four such folders had accumulated locally, 84 page images
across four unpublished papers, and git reported the directory as
untracked rather than ignored.

Untracked is a weaker guarantee than it looks. The papers themselves are
protected because papers/*/ is ignored, but their renders sit at the repo
root and inherit none of that protection. A git add -A would stage
unpublished paper pages into a public repo, which is exactly what the
papers-stay-local rule exists to prevent.

Ignoring tmp/ closes the gap at the directory that keeps getting
recreated, rather than relying on whoever runs the next render to clean up
after it.

The accumulated renders are separately being deleted locally. They are
fully regenerable from each paper's main.pdf, so nothing original is
lost.

🤖 Generated with Claude Code

Reviewing a paper render rasterizes its PDF into page images under
tmp/pdfs/. Four such folders had accumulated, 84 page images across four
unpublished papers, and git reported the directory as untracked rather
than ignored.

Untracked is a weaker guarantee than it looks. The papers themselves are
protected because papers/*/ is ignored, but their renders sit at the repo
root and inherit none of that, so a git add -A would stage unpublished
paper pages into a public repo. Ignoring tmp/ closes the gap at the
directory that keeps getting recreated, rather than relying on whoever
runs the next render to clean up after it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

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