Hacker News new | past | comments | ask | show | jobs | submit login

Maybe this: in "draft mode", you automatically commit on all changes in pass/fail state. Then, at some point, you "publish", at which point you squash all the commits from commit X to HEAD whose message matches "[ON RED]".

I imagine git rebase -i X | sed -i "magic happens here" would do the job.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact