News for hackers. Stuff that matters.
Re:Let's Code: Test-Driven Javascript by jdlshore on Tuesday May 15, 2012 @01:47PM (#3977745)
Hmm... thinking about this further, it shouldn't be too hard to have a wrapper for my build script that stores the most recent pass/fail state, then automatically commits when that state changes. The trick would be not polluting the continuous integration or end-of-episode branches. I'm sure it can be done, but my git-fu is weak and it would take some research. Might be a good stretch goal reward if funding goes well...
Re:Let's Code: Test-Driven Javascript by jbrains on Friday May 18, 2012 @09:00AM (#3991542)
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.

Re:Let's Code: Test-Driven Javascript by azundo on Tuesday May 15, 2012 @04:40PM (#3978700)
Thanks for the reply! Good luck with reaching the funding goal - interested to hear how things go and if you do work out a way to get the build script working as well.
Re:Let's Code: Test-Driven Javascript by jdlshore on Sunday May 20, 2012 @06:35PM (#4000327)
Okay, I did it. :-) I'm not sure how useful/readable the result is, but check it out and let me know what you think.

https://github.com/jamesshore/Autocommit

Re:Let's Code: Test-Driven Javascript by azundo on Monday May 21, 2012 @05:47AM (#4002056)
Awesome! Thanks for making this happen. Have downloaded the git repository and will take a look soon.