Allow user-specified commit instead of HEAD