commit: detect misspelled pathspec while making a partial commit.