summaryrefslogtreecommitdiff
path: root/tests-clar/refs/lookup.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-60/+0
|
* futils: return GIT_ENOTFOUND when trying to read a directoryCarlos Martín Nieto2013-10-111-0/+12
| | | | | This lets the reference code return not-found when the user asks to look up a reference when in fact they pass a namespace.
* refs: explicitly catch leading slashesCarlos Martín Nieto2013-03-071-0/+6
| | | | | | | | | | It's somewhat common to try to write "/refs/tags/something". There is no easy way to catch it during the main body of the function, as there is no way to distinguish whether it's a leading slash or a double slash somewhere in the middle. Catch this at the beginning so we don't trigger the assert in is_all_caps_and_underscore().
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-1/+1
|
* refs: introduce git_reference_is_valid_name()nulltoken2012-09-251-1/+1
|
* Rename to git_reference_name_to_oidRussell Belfer2012-04-231-1/+1
|
* Add git_reference_lookup_oid and lookup_resolvedRussell Belfer2012-04-171-0/+42
Adds a new public reference function `git_reference_lookup_oid` that directly resolved a reference name to an OID without returning the intermediate `git_reference` object (hence, no free needed). Internally, this adds a `git_reference_lookup_resolved` function that combines looking up and resolving a reference. This allows us to be more efficient with memory reallocation. The existing `git_reference_lookup` and `git_reference_resolve` are reimplmented on top of the new utility and a few places in the code are changed to use one of the two new functions.