Check whether this is a dirty commit.