Skip to content

consistently ignore or track .claude in each repo #178

Description

@twistedmelonman
find . -mindepth 1 -maxdepth 2 -type d -name .git -prune |
    sed 's|/\.git$||' |
    while read -r repo; do
        [[ -d "$repo/.claude" ]] || continue

        if git -C "$repo" ls-files --error-unmatch .claude >/dev/null 2>&1 ||
           git -C "$repo" ls-files .claude/ | grep -q .; then
            status="TRACKED"
        elif git -C "$repo" check-ignore -q .claude; then
            status="IGNORED"
        else
            status="NOT IGNORED"
        fi

        printf "%-12s %s\n" "$status" "$repo"
    done

currently (2026-10-02 0939) prints:

TRACKED ./networth-agent
IGNORED ./reliquarist
IGNORED ./swift-progress-indicator
TRACKED ./qwen-sidebar
IGNORED ./repo-template
IGNORED ./mac-dev-server-setup
IGNORED ./dotfiles
TRACKED ./kebab-tax
TRACKED ./financial-agent
TRACKED ./night-owl-studio
TRACKED ./slack-mcp
IGNORED ./gmail-newsletter-filter
IGNORED ./claude-code-workflows-agents
IGNORED ./homebrew-tap
NOT IGNORED ./claude-config
TRACKED ./spokane-snow
TRACKED ./dev-env
TRACKED ./lock-sync
IGNORED ./infinite-yaks
TRACKED ./tensegrity
IGNORED ./notes-mcp
IGNORED ./huddle-transcribe
TRACKED ./personify
TRACKED ./Gmail-MCP-Server
IGNORED ./mac-server-setup
IGNORED ./scripts
IGNORED ./vpn-lan-bridge
IGNORED ./LaunchAgents
IGNORED ./github-workflows
TRACKED ./claude-wrapper
IGNORED ./parmesan
TRACKED ./kebab-tax-netlify
IGNORED ./cleanroom
IGNORED ./archive-resolver
IGNORED ./nightowlstudiollc.github
NOT IGNORED ./smartwatermelon.github
TRACKED ./smartwatermelon-marketplace
TRACKED ./amelia-boone
TRACKED ./pr-review
TRACKED ./tnjcleaning

With no consistency or reasoning that I can find. We need to decide:
Track/commit? Ignore? And if Ignore, is it .gitignore or .git/info/exclude?

And apply this policy uniformly, ideally with the template.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions