Shortened commit string comparing