Safety fixes for check-series script (snippets, 44b1750)

Now refuses to run if there are any staged or unstaged changes, and actually updates both index and working tree back to old HEAD upon finishing (previously we just manipulated the HEAD directly; this was a kludge and incorrect anyway because it didn't touch the index or working tree).

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Ruby 1.9/2.0 manifold faster...
check-series fix (snippets, 5c29711) →

All snippets