]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
pack_refs(): change to use do_for_each_entry()
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:35 +0000 (21:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 May 2013 22:33:11 +0000 (15:33 -0700)
commit12e77559ec4bf863d3703a25ab79298d5ff89b3b
tree1652cf0835074da6b0693451c73123a043321c3a
parentd9470330379f5899dd117b7c720e67d278fed9e2
pack_refs(): change to use do_for_each_entry()

pack_refs() was not using any of the extra features of for_each_ref(),
so change it to use do_for_each_entry().  This also gives it access to
the ref_entry and in particular its peeled field, which will be taken
advantage of in the next commit.

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