graph API: fix "git log --graph --first-parent"