- 
                Notifications
    You must be signed in to change notification settings 
- Fork 292
          [Maint] Update uncommitted change detection command in format.sh
          #1102
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| WalkthroughRefined format.sh's uncommitted-change detection to ignore submodules and untracked files, quoted the case argument, and removed the automatic pre-commit hook installation/initialization block. Changes
 Sequence Diagram(s)sequenceDiagram
    autonumber
    participant User as Developer (runs format.sh)
    participant Script as format.sh
    participant Git as git
    participant PreCommit as pre-commit (hooks)
    User->>Script: execute ./format.sh
    Script->>Git: git status --porcelain --ignore-submodules --untracked-files=no
    alt changes detected
        Git-->>Script: non-empty output
        Script-->>User: "Detected uncommitted changes..." (exit)
    else no changes
        Git-->>Script: empty output
        Script->>PreCommit: (no automatic install/init) — proceed with formatting steps
        Script-->>User: run format/lint commands
    end
    Note over Script,PreCommit: pre-commit is no longer auto-initialized by this script
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
 Poem
 Pre-merge checks and finishing touches✅ Passed checks (4 passed)
 ✨ Finishing touches
 🧪 Generate unit tests (beta)
 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
 🚧 Files skipped from review as they are similar to previous changes (1)
 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment  | 
| 👋 Hi! Thank you for contributing to the TileLang project. Please remember to run  We appreciate you taking this step! Our team will review your contribution, and we look forward to your awesome work! 🚀 | 
Resolves #1099
Summary by CodeRabbit