From: Junio C Hamano Date: Tue, 13 Feb 2007 07:06:54 +0000 (-0800) Subject: Do not forget to pack objects reachable from HEAD reflog. X-Git-Tag: v1.5.0~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=25b51e2c7f6fd220cee2a363297b04a246143372;p=git.git Do not forget to pack objects reachable from HEAD reflog. Similar to commit eb8381c8, we need to use for_each_reflog() to make sure we do not miss objects reachable from HEAD reflog. Signed-off-by: Junio C Hamano --- diff --git a/revision.c b/revision.c index 5bcd155e2..15bdaf609 100644 --- a/revision.c +++ b/revision.c @@ -532,7 +532,7 @@ static void handle_reflog(struct rev_info *revs, unsigned flags) struct all_refs_cb cb; cb.all_revs = revs; cb.all_flags = flags; - for_each_ref(handle_one_reflog, &cb); + for_each_reflog(handle_one_reflog, &cb); } static int add_parents_only(struct rev_info *revs, const char *arg, int flags)