Compare two references.
The first git_reference
The second git_reference
0 if the same, else a stable but meaningless ordering.