From: Junio C Hamano Date: Mon, 2 Apr 2007 05:07:26 +0000 (-0700) Subject: Rename internal function "add_file_to_cache" in builtin-update-index.c X-Git-Tag: v1.5.2-rc0~84 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=81e1bc47687dc78598ad003f0d02a328a6ddae72;p=git.git Rename internal function "add_file_to_cache" in builtin-update-index.c I'd like to consistently name all index-layer functions that operate on the default index xxx_cache(), and this application specific function interferes with the plan. Signed-off-by: Junio C Hamano --- diff --git a/builtin-update-index.c b/builtin-update-index.c index 71cef633c..d1e5cf753 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -60,7 +60,7 @@ static int mark_valid(const char *path) return -1; } -static int add_file_to_cache(const char *path) +static int process_file(const char *path) { int size, namelen, option, status; struct cache_entry *ce; @@ -210,7 +210,7 @@ static void update_one(const char *path, const char *prefix, int prefix_length) report("remove '%s'", path); goto free_return; } - if (add_file_to_cache(p)) + if (process_file(p)) die("Unable to process file %s", path); report("add '%s'", path); free_return: