diff options
author | Russell Belfer <rb@github.com> | 2013-04-29 19:59:46 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-04-29 19:59:46 +0400 |
commit | aa8f010120577e61715f3ae1286a03055815f9c3 (patch) | |
tree | c6e8f4c96797675040e45e4b420705f5f3c21454 /src/push.c | |
parent | 8564a0224abe09beaacb2d2e7a54b16f8fcea7d1 (diff) |
Add git_oid_strcmp and use it for git_oid_streq
Add a new git_oid_strcmp that compares a string OID with a hex
oid for sort order, and then reimplement git_oid_streq using it.
This actually should speed up git_oid_streq because it only reads
as far into the string as it needs to, whereas previously it would
convert the whole string into an OID and then use git_oid_cmp.
Diffstat (limited to 'src/push.c')
0 files changed, 0 insertions, 0 deletions