repack_without_ref(): reimplement using do_for_each_ref_in_array()
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 10 Apr 2012 05:30:17 +0000 (07:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Apr 2012 22:53:28 +0000 (15:53 -0700)
commitd66da478f26df3114af1177fa5614035439178ed
tree39e4c87c78ae9d4a0d55ddb6a657a58231a78231
parentb3fd060f9e60f842b46183067f1a76fa6a5358b1
repack_without_ref(): reimplement using do_for_each_ref_in_array()

It costs a bit of boilerplate, but it means that the function can be
ignorant of how cached refs are stored.

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