From: Linus Torvalds Date: Fri, 19 May 2006 16:56:35 +0000 (-0700) Subject: Libify the index refresh logic X-Git-Tag: v1.4.0-rc1~121 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=405e5b2fe0cf20b0eea41ca892f416c218b49f59;hp=405e5b2fe0cf20b0eea41ca892f416c218b49f59;p=git.git 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 Signed-off-by: Junio C Hamano ---