refs: extract function peel_object()
commitcb2ae1c418eae2cf2c632ca78a14861ff5f3da68
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:19 +0000 (22 21:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 May 2013 22:33:10 +0000 (1 15:33 -0700)
treedd33c97d7007b442adabff0134462866bdb6a463
parent662428f4e98a740800659081910ef8b1ef3940fa
refs: extract function peel_object()

It is a nice, logical unit of work, and putting it in a function
removes the need to use a goto in peel_ref().  Soon it will also have
other uses.

The algorithm is unchanged.

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