Use topological ordering for git log. Fixes #311