Description:
Currently, when running the script that generates .gitignore and .cursorignore, it appends entries even if they already exist in the file. This results in duplicate entries being added repeatedly each time the script is run.
Expected Behavior:
- The script should only add new entries if they don’t already exist in the respective ignore files.
- If the file already contains the desired ignore entry, it should not add it again.
- If the file contains other unrelated entries, those should remain untouched—no deletions or overrides.
Steps to Reproduce:
- Run the generator once — entries are added to
.gitignore and .cursorignore.
- Run it again — the same entries are appended again, creating duplicates.
Acceptance Criteria:
Additional Context:
This would improve clarity and prevent unnecessary file noise or git diff clutter.
Description:
Currently, when running the script that generates
.gitignoreand.cursorignore, it appends entries even if they already exist in the file. This results in duplicate entries being added repeatedly each time the script is run.Expected Behavior:
Steps to Reproduce:
.gitignoreand.cursorignore.Acceptance Criteria:
.gitignoreor.cursorignore.Additional Context:
This would improve clarity and prevent unnecessary file noise or git diff clutter.