get_packed_ref(): return a ref_entry
commit63331581aba9537a83d2e9fe21ffab305d9f8ad6
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:15 +0000 (22 21:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 May 2013 22:33:09 +0000 (1 15:33 -0700)
tree976674e7fafb51e361d3a9190e625af135435960
parentb830f6c66b2fd635d9cfa318d047917ea987a719
get_packed_ref(): return a ref_entry

Instead of copying the reference's SHA1 into a caller-supplied
variable, just return the ref_entry itself (or NULL if there is no
such entry).  This change will allow the function to be used from
elsewhere.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c