The table of dirty states is really useful, especially the edited .gitignore row. I'd have guessed that one slips through, and it's a nice catch that the README's own setup step trips the first review. Did you consider git status --porcelain=v2 instead, or is v1 enough for what you need? I've found v2 handy when I want to tell staged and unstaged changes apart in a script.
Thanks, Ethan. The gate runs git status --porcelain --untracked-files=all, which defaults to v1, and refuses if it prints anything. Version 2 lists the same changed and untracked paths and adds file modes, object names, submodule state and rename details, which only matter when a script parses each entry. Neither version lists ignored files unless you ask for them, so a file under .gitignore never makes the gate refuse. Is your script reading the entries, or just checking for a clean tree?
Ethan Moore
The table of dirty states is really useful, especially the edited .gitignore row. I'd have guessed that one slips through, and it's a nice catch that the README's own setup step trips the first review. Did you consider
git status --porcelain=v2instead, or is v1 enough for what you need? I've found v2 handy when I want to tell staged and unstaged changes apart in a script.