libgit2/src/transports
Russell Belfer f201d613a8 Add git_reference_lookup_oid and lookup_resolved
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.
2012-04-17 10:44:50 -07:00
..
git.c error-handling: git transport 2012-04-11 19:16:10 +02:00
http.c error-handling: http 2012-04-11 19:16:10 +02:00
local.c Add git_reference_lookup_oid and lookup_resolved 2012-04-17 10:44:50 -07:00