Skip to content

Add section header when appending to .gitignore#95

Open
jubishop wants to merge 1 commit intomarcus:mainfrom
jubishop:gitignore-section-header
Open

Add section header when appending to .gitignore#95
jubishop wants to merge 1 commit intomarcus:mainfrom
jubishop:gitignore-section-header

Conversation

@jubishop
Copy link
Copy Markdown

Summary

  • td init now adds .todos/ under a # td header with spacing instead of blindly appending to the end of .gitignore
  • Makes it clear where the entry came from and keeps the file organized

Test plan

  • Run td init in a repo with an existing .gitignore — verify .todos/ appears under a # td header with blank lines above
  • Run td init in a repo with no .gitignore — verify file is created with the header
  • Run td init in a repo where .todos/ is already in .gitignore — verify no duplicate entry

🤖 Generated with Claude Code

td init now adds .todos/ under a "# td" header instead of blindly
appending to the end of .gitignore, making it clear where the entry
came from.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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