From: Michael Haggerty Date: Thu, 20 Jun 2013 08:37:48 +0000 (+0200) Subject: do_for_each_entry(): increment the packed refs cache refcount X-Git-Tag: v1.8.4-rc0~103^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8baf2bb99a22f8265a26d97f706a27e39911f69e?ds=inline;hp=8baf2bb99a22f8265a26d97f706a27e39911f69e do_for_each_entry(): increment the packed refs cache refcount This function calls a user-supplied callback function which could do something that causes the packed refs cache to be invalidated. So acquire a reference count on the data structure to prevent our copy from being freed while we are iterating over it. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---