summaryrefslogtreecommitdiff
path: root/src/oid.h
Commit message (Collapse)AuthorAgeFilesLines
* oid: Export `git_oid_tostr_s` instead of `_allocfmt`vmg/tostr_sVicent Marti2014-08-181-0/+11
| | | | | | The old `allocfmt` is of no use to callers, as they are not able to free the returned buffer. Export a new API that returns a static string that doesn't need to be freed.
* oid: Helper for old-school hashcmpvmg/no-lookupVicent Marti2013-08-141-10/+13
|
* Add new src/oid.hRussell Belfer2013-04-291-0/+33
|
* oid: Uniformize ncmp methodsVicent Marti2011-06-161-17/+0
| | | | Drop redundant methods. The ncmp method is now public
* Renamed git_oid_match to git_oid_ncmp.Marc Pegon2011-06-061-2/+2
| | | | | | As suggested by carlosmn, git_oid_ncmp would probably be a better name than git_oid_match, for it does the same as git_oid_cmp but only up to a certain amount of hex digits.
* Changed return value of git_oid_match to be consistent with the other ↵Marc Pegon2011-06-011-1/+11
| | | | compare methods (0 means oids match). Added method to compare prefixes of hex formatted oids.
* Added error for ambiguous oid prefixes. Added methods to compare the first ↵Marc Pegon2011-06-011-0/+7
nth hexadecimal characters (i.e. packets of 4 bits) of OIDs.