Code

Make "git checkout" verify that the argument refers to a commit