Propagate cache error internal to refresh_cache() via parameter.
authorJunio C Hamano <junkio@cox.net>
Mon, 2 Apr 2007 04:34:34 +0000 (21:34 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 5 Apr 2007 22:07:16 +0000 (15:07 -0700)
commitec0cc704692a83c1d01b53f366b9919accdd4268
treea69158b2931bf94194abb08f171ce51fbcaaae65
parent0424138d5715dbf8605bacfbd22210aac85a1a8f
Propagate cache error internal to refresh_cache() via parameter.

The function refresh_cache() is the only user of cache_errno
that switches its behaviour based on what internal function
refresh_cache_entry() finds; pass the error status back in a
parameter passed down to it, to get rid of the global variable
cache_errno.

Signed-off-by: Junio C Hamano <junkio@cox.net>
read-cache.c