Skip to content

gitignore the files prepare-ai-repository generates - #10

Open
tobixen wants to merge 2 commits into
mainfrom
fix/ignore-generated-files
Open

tobixen wants to merge 2 commits into
mainfrom
fix/ignore-generated-files

Conversation

@tobixen

@tobixen tobixen commented Oct 8, 2026 •

Copy link
Copy Markdown
Member
  • The files installed by this hook should be .gitignored instead of tracked in the target repositories.
  • The pre-commit stage now prints a hint if the hook script or its settings entry is missing

Code was AI-generated

@tobixen
tobixen force-pushed the fix/ignore-generated-files branch 2 times, most recently from 4f525d2 to 51593a4 Compare October 8, 2026 20:12
Committed copies of the generated files went stale: caldav-server-tester
ran an outdated hook for months.  The hook now goes into the per-user
.claude/settings.local.json and is removed from the shared
settings.json; all three generated files are added to .gitignore.  This
repository stops tracking its own copies, and `release` bumps data/
directly.

Prompt: Read and act on the HANDOVER-ignore-generated-files.md file [a handover note from an earlier session, not committed]

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
With the generated files gitignored, a fresh clone records no prompts
until prepare-ai-repository has run, and nothing said so.  The
pre-commit stage now prints a hint while the hook script or its
settings entry is missing, unless `ai-prompt-auto-commit.hint` is set to
false.  pre-commit hides the output of passing hooks, so it goes to
/dev/tty, and is skipped without a terminal.

Prompt: Would things just work out of the box if the files follow the repository? [= if the generated files were committed rather than gitignored]
Followup-Prompt: add the missing-hook hint, then push it
Followup-Prompt: (answer to a clarifying question) Write to /dev/tty (Recommended) [over a '#' line in the commit message, failing the commit, or no hint]

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen force-pushed the fix/ignore-generated-files branch from 51593a4 to 4906903 Compare October 9, 2026 05:10
@tobixen tobixen changed the title fix/ignore generated files gitignore the files prepare-ai-repository generates Oct 9, 2026
@tobixen
tobixen marked this pull request as ready for review October 9, 2026 05:17
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

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