Skip to content

Ignore the root tasks/ scratch directory - #1950

Open
EJTison wants to merge 1 commit into
mainfrom
gitignore-tasks-dir
Open

Ignore the root tasks/ scratch directory#1950
EJTison wants to merge 1 commit into
mainfrom
gitignore-tasks-dir

Conversation

@EJTison

@EJTison EJTison commented Jul 28, 2026

Copy link
Copy Markdown

Description

Adds /tasks/ to .gitignore.

Development process files — todo lists, plans, specs — get written to a root-level tasks/ directory while working, and they shouldn't ride along into feature PRs. This came up while building #1949: tasks/todo.md showed as untracked and had to be avoided by staging each file by hand, which is easy to get wrong.

Why /tasks/ and not tasks/

The leading slash anchors the pattern to the repo root. Without it, gitignore matches a directory of that name at any depth, which would also cover two unrelated source directories:

  • pages/accountLists/[accountListId]/tasks/
  • src/lib/tasks/

Files already committed there would keep tracking either way, but any new file added to them would be silently ignored — a confusing failure to run into later. Anchoring avoids that entirely.

Testing

  • git check-ignore -v tasks/todo.md → matches .gitignore:60:/tasks/
  • git check-ignore on a hypothetical new file in pages/accountLists/[accountListId]/tasks/ and in src/lib/tasks/ → not ignored, both still track
  • git status reports no change to any currently-tracked file

🤖 Generated with Claude Code

Process notes written while working (todo lists, plans, specs) land
in tasks/ and shouldn't ride along into feature PRs.

Anchored to the repo root so it can't swallow the unrelated tasks/
source directories under pages/ and src/.

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

Copy link
Copy Markdown
Contributor

Bundle sizes [mpdx-react]

Compared against 0a0f7c3

No significant changes found

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