Libify the index refresh logic
authorLinus Torvalds <torvalds@osdl.org>
Fri, 19 May 2006 16:56:35 +0000 (09:56 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 19 May 2006 22:59:18 +0000 (15:59 -0700)
commit405e5b2fe0cf20b0eea41ca892f416c218b49f59
tree0e211548f57590d05eab3d266584c7cad26794bc
parentc3c8835fbb182d971d71939b9a3ec7c8b86d6caf
Libify the index refresh logic

This cleans up and libifies the "git update-index --[really-]refresh"
functionality. This will be eventually required for eventually doing the
"commit" and "status" commands as built-ins.

It really just moves "refresh_index()" from update-index.c to
read-cache.c, but it also has to change the calling convention so that the
function uses a "unsigned int flags" argument instead of various static
flags variables for passing down the information about whether to be quiet
or not, and allow unmerged entries etc.

That actually cleans up update-index.c too, since it turns out that all
those flags were really specific to that one function of the index update,
so they shouldn't have had file-scope visibility even before.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h
read-cache.c
update-index.c