In using git_revwalk
(through Objective-Git's GTEnumerator
), I'm trying to get more recently updated branches ordered first. I'm calling gt_revwalk_push
with refs sorted by commit date, but it has no effect. Sorted, reverse sorted, and unsorted all come out the same.
Using GIT_SORT_TIME
without GIT_SORT_TOPOLOGICAL
comes close, but I do need a topological ordering, so I'm setting both flags.
Is there a way to get git_revwalk
to use the refs in the order I give them?