repo git: Split log parse and sort logic